r/programming • u/knife_sharpener • Feb 22 '15
Java Makes Programmers Want To Do Absolutely Anything Else With Their Time
http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35
Upvotes
1
u/[deleted] Feb 22 '15
I mean it's not like it's technically infeasible to infer the type at compile time. The current approach is just a lot clearer (see the second point).
For example, a quick glance while scrolling through the code in a web-based code viewer shows you what type you're dealing with. You don't need to go into an IDE or follow the source code to figure this out. Basically what I'm getting at is that it's a feature, not a deficiency.
Also, IDEs kinda give you coding-time type inference and add the types to the source code for you. So you don't generally have to type it out.