MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/49prtn/var_keyword_proposed_for_java/d0ugx6d
r/programming • u/adila01 • Mar 09 '16
395 comments sorted by
View all comments
Show parent comments
6
var/val are already used in this way in other languages (scala, kotlin and more). They also have the benefit of being the same length, which is nice.
6 u/mirhagk Mar 10 '16 As much as I'm voting for var/val in C# I do think Java would benefit from just doing final since everyone already knows that keyword and what it means in Java.
As much as I'm voting for var/val in C# I do think Java would benefit from just doing final since everyone already knows that keyword and what it means in Java.
var
val
final
6
u/demon_ix Mar 10 '16
var/val are already used in this way in other languages (scala, kotlin and more). They also have the benefit of being the same length, which is nice.