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

-1

u/immibis Mar 10 '16

Java is not a functional programming language; making immutability the default here, but not everywhere else, would be a jarring inconsistency.

(And imagine 10 years later when they've added a bunch more features, and you have to remember which half of the language features immutability by default, and which half features mutability by default.)

8

u/G_Morgan Mar 10 '16

Even in Java most variables never vary in good code.

0

u/[deleted] Mar 10 '16

[deleted]

2

u/G_Morgan Mar 10 '16

Yeah my point was that default immutable would not be out of place.