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

43

u/solatic Mar 09 '16

Good idea. Hey, let's also introduce val as the equivalent of final var while we're at it, to promote immutability.

Why not?

3

u/DecisiveVictory Mar 10 '16

No reason not to.

Eventually, step by step, change the language to achieve full compatibility with better programming languages which already have this feature.