Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jkot
on March 10, 2016
|
parent
|
context
|
favorite
| on:
JEP 286: Local-Variable Type Inference
I hope they will give it second though. In Java 'var' or 'val' are not reserved keywords. It was difficult to migrate existing code when 'enum' was introduced. 'const' is reserved but nothing for variable, perhaps 'new' or some symbols.
ygra
on March 11, 2016
[–]
They will be made into reserved
type names
. Since classes with those names violate naming conventions anyway they should be quite rare.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: