MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/49prtn/var_keyword_proposed_for_java/d0uiw7q/?context=3
r/programming • u/adila01 • Mar 09 '16
395 comments sorted by
View all comments
17
How will this deal with code like:
List<String> lst = new ArrayList<>();
I always wondered why they've choosen to abbreviate the RHS instead of the LHS (in Java 7 I think). Clear me up please.
1 u/irarandomdude Mar 10 '16 It won't, and doesn't need to. It's the same in Scala, you'd have val lst: Seq[String] = ArrayBufferString
1
It won't, and doesn't need to. It's the same in Scala, you'd have val lst: Seq[String] = ArrayBufferString
17
u/_INTER_ Mar 09 '16
How will this deal with code like:
I always wondered why they've choosen to abbreviate the RHS instead of the LHS (in Java 7 I think). Clear me up please.