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

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?

1

u/Eirenarch Mar 11 '16

First of all - because the real problem is that sometimes it is unclear simply unclear what the type is, period. In addition if I accept the type is clear but the developers who wrote the code suck then we'll have to fire people and there will be no one to write the code. And finally if the prior argument is true this means that the developers on .NET Core suck and should be fired because strangely they have imposed the same restriction in their code conventions.