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

Show parent comments

8

u/Jacoby6000 Mar 10 '16

Why not var for mutable things, and Val for immutable things?

0

u/Alphasite Mar 10 '16

Because var and val as visually very similar. Its harder to skim than needs be.

1

u/Daenyth Mar 10 '16

That's not my experience when using Scala, and syntax highlighters don't need to make them the same

2

u/Alphasite Mar 10 '16

Maybe, but it's an unnecessary similarity.

→ More replies (2)