MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/49prnu/var_keyword_proposed_for_java/d0uev04/?context=3
r/java • u/adila01 • Mar 09 '16
312 comments sorted by
View all comments
43
Good idea. Hey, let's also introduce val as the equivalent of final var while we're at it, to promote immutability.
val
final var
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.
3
No reason not to.
Eventually, step by step, change the language to achieve full compatibility with better programming languages which already have this feature.
43
u/solatic Mar 09 '16
Good idea. Hey, let's also introduce
valas the equivalent offinal varwhile we're at it, to promote immutability.Why not?