r/java • • Mar 09 '16

var keyword proposed for Java

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

312 comments sorted by

View all comments

26

u/xhak Mar 09 '16

No thanks, the few keystrokes are worth the clarity.

5

u/diroussel Mar 09 '16

If you want clarity then don't use it. It won't be forced on you. There are many cases that are perfectly clear using var.

18

u/marc2912 Mar 09 '16

It's not a matter of don't use it since most developers don't just work with their code. Then you get the inconsistency that it's in some places and not in other.

1

u/diroussel Mar 10 '16

This is why we have coding standards and code review. If your not doing that then you have bigger problems.

2

u/marc2912 Mar 10 '16

You make it sound like each person who feels this way is in charge of their own team or in a group with the resources to do regular code reviews. From my experience code reviews don't happen near as often as they should.