MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/49prtn/var_keyword_proposed_for_java/d0udhjc
r/programming • u/adila01 • Mar 09 '16
395 comments sorted by
View all comments
Show parent comments
1
Why? Does Visual Studio not have an equivalent to eclipse's "assign to new local variable"? It seems easier to write the LINQ query first and let the IDE handle the declaration.
1 u/Alikont Mar 10 '16 Sometimes it's simply not possible, like if you use anonymous types.ILookup<string, IGrouping<int, Something>> v = GetSomething() is much uglier than var v = GetSomething(). 0 u/[deleted] Mar 10 '16 Not that I'm aware of, no.
Sometimes it's simply not possible, like if you use anonymous types.
ILookup<string, IGrouping<int, Something>> v = GetSomething() is much uglier than var v = GetSomething().
ILookup<string, IGrouping<int, Something>> v = GetSomething()
var v = GetSomething()
0
Not that I'm aware of, no.
1
u/yoden Mar 10 '16
Why? Does Visual Studio not have an equivalent to eclipse's "assign to new local variable"? It seems easier to write the LINQ query first and let the IDE handle the declaration.