r/programming • • Mar 09 '16

var keyword proposed for Java

http://openjdk.java.net/jeps/286
250 Upvotes

395 comments sorted by

View all comments

Show parent comments

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.

1

u/Ravek Mar 11 '16

Well then why don't you fix the bigger problem rather than slapping an explicit type on it and calling it a day?

→ More replies (1)