var unbufOut = NetUtils.getOutputStream(sock);
OutputStream unbufOut = NetUtils.getOutputStream(sock);
I would prefer if Java did not introduce a var keyword. Java's strong suite is code readability. Typing out a variable type is no bottleneck
— Rafael Winterhalter (@rafaelcodes) 10 2016 .
Scope is small, so will only give more confussion to new developers. The typing of the boiler plate is tackled by decent IDEs.
We have IDEs so I don't care
I'm not sure if it will not increase the difficulty of code review
I code both in Java and C# and sometimes and need to work with C# code where people have used var. It makes it a lot harder to see the type of a variable for no or very little gain.
Don't blame language features for making developers write shitty code. Blame shitty developers! JEP286 is a *great* thing for java #var #val
— Simon Maple (@sjmaple) 13 2016 .
Thanks so much! This will remove yet another death-by-a-thousand-cuts issues w Java that drive people to seek alternatives
Please simplifiy the Java language (and JavaEE in general)! Type inference is a great step into the right direction.
Is there way to add union and intersection types in Java?
Could you consider the introduction of case classes (like in Scala)?
when do you expect primitive types be allowed in generics?
Remove getters and setters.
When will we have async/await feature in Java ( like c# and f# ) ?
Source: https://habr.com/ru/post/280075/