MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/49prnu/var_keyword_proposed_for_java/d0tzbcg/?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?
17 u/sindisil Mar 09 '16 That's already an option called out in the JEP, yes.
17
That's already an option called out in the JEP, yes.
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?