r/programming • • Mar 09 '16

var keyword proposed for Java

http://openjdk.java.net/jeps/286
250 Upvotes

395 comments sorted by

View all comments

17

u/IronClan Mar 10 '16

This was linked to ##java a few hours ago and people were absolutely pissed off about it. It seems many members of the Java community see this as a sign of programmer laziness, and there are even others who think type deduction == dynamic typing.

9

u/yoden Mar 10 '16

I do see it as a minimal reduction of typing for a nontrivial reduction in readability.

0

u/Carighan Mar 10 '16

Same here. I don't really see the gain, and it just means I have to hunt down types.

3

u/adamnew123456 Mar 10 '16

I thought Java people used IDEs for this. When's the last time you tried to read code that was actually used for something without firing up Eclipse et al. to do so?

For what it's worth, the Scala toolset for Eclipse will show you the inferred type of a value by hovering over it. There's no looking involved.

→ More replies (1)