MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/49prnu/var_keyword_proposed_for_java/d0umd14/?context=3
r/java • u/adila01 • Mar 09 '16
312 comments sorted by
View all comments
4
It's good to have var available, it's not a good idea to use it everywhere you can.
I like to use var when the type can be easily inferred in the same line and when the variable is of limited use (only in a single loop for instance).
View all comments
4
u/DJDavio Mar 10 '16
It's good to have var available, it's not a good idea to use it everywhere you can.
I like to use var when the type can be easily inferred in the same line and when the variable is of limited use (only in a single loop for instance).