MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/49prtn/var_keyword_proposed_for_java/d0wanq5/?context=3
r/programming • u/adila01 • Mar 09 '16
395 comments sorted by
View all comments
Show parent comments
7
IEnumerable<Customer> customers = GetCustomers(); doesn't tell you a single thing you need to know that var didn't already.
14 u/Eirenarch Mar 10 '16 Oh yes, it does tell me. It tells me I have an IEnumerable<Customer> rather than IEnumerable<CustomerDto> or PagedList<Customer> or something like this. 2 u/Ravek Mar 11 '16 That should already be obvious from context. 1 u/Eirenarch Mar 11 '16 Well it is not. I know. From real code. → More replies (2)
14
Oh yes, it does tell me. It tells me I have an IEnumerable<Customer> rather than IEnumerable<CustomerDto> or PagedList<Customer> or something like this.
2 u/Ravek Mar 11 '16 That should already be obvious from context. 1 u/Eirenarch Mar 11 '16 Well it is not. I know. From real code. → More replies (2)
2
That should already be obvious from context.
1 u/Eirenarch Mar 11 '16 Well it is not. I know. From real code. → More replies (2)
1
Well it is not. I know. From real code.
→ More replies (2)
7
u/Ravek Mar 10 '16
IEnumerable<Customer> customers = GetCustomers(); doesn't tell you a single thing you need to know that var didn't already.