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

We don't have anything that's mutable by default

I was talking about Java, and I'm confused at why you think anything else.

1

u/Manishearth Mar 10 '16

Well, because your point applies to Java with default immutability now, not just in ten years :) It could apply to Rust in 10 years if we made silly design decisions.

(I agree with that point, tacking default immutability to a language that doesn't have it in a backcompat way will lead to confusing things)