Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wtetzner
on March 13, 2016
|
parent
|
context
|
favorite
| on:
JEP 286: Local-Variable Type Inference
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");
nikolay
on March 13, 2016
[–]
Yeah, but how about the implementation?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
So instead of doing this:
You can do this: