Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
the_af
on March 10, 2016
|
parent
|
context
|
favorite
| on:
JEP 286: Local-Variable Type Inference
For your example, it makes no difference. However, take a look at the other example mentioned at the beginning:
var stream = list.stream(); // infers Stream<String>
How would you write it in order to take advantage of type inference?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: