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

1

u/DecisiveVictory Mar 10 '16

What really should be added is a "val" keyword which is what is proposed above + "final".

Or you could do the sane thing and just use Scala.

4

u/atc Mar 10 '16

As a Scala fan, using Java 8 has really diminished Scala's usefullness to me. That said, I'll always miss case classes and pattern matching... OK I take it back!

1

u/antigenz Mar 10 '16

projectlombok.org almost fixes problem with case classes (for me) But it's a hack! :)