r/programming • • 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

636 comments sorted by

View all comments

Show parent comments

4

u/gingenhagen Feb 22 '15

I'd say that the two things that Java is really hurting for are first-class functions and closures.

5

u/aradil Feb 22 '15

And the lack of a not brain-dead datetime/calendar library.

Wooo Java 8. I'll probably never be able to upgrade to Java 8. Also, I'm pretty sure it's anonymous functions are internally just converted to classes anyway, and are really just sugar. But I like sugar.

2

u/bluestorm96 Feb 22 '15

Anonymous functions in Java 8 are not implemented as inner classes. You'll note that compiling a class with lambdas doesn't spit out multiple class files, as opposed to ones with inner classes. The compiler spits out different bytecode, and the JVM also each differently at runtime. There's a good read about it here.

1

u/aradil Feb 22 '15

That's very awesome. I could have sworn I read something saying the opposite, but that may have been a very long time ago back when they were still deciding what features to put into Java 8.