Hacker News new | past | comments | ask | show | jobs | submit login

Sorry, did "static factory" sound scary? How about "use a function to create your objects" instead?

So instead of doing this:

    Foo foo = new Foo("bar");
You can do this:

    Foo foo = Foo.of("bar");



Yeah, but how about the implementation?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: