4 ms·
Why is Java one the of really awful ones? I know Java is not the best language, it's not my favorite language, but I wouldn't say its really awful.
by jstuxx 11y ago
Why is Java one the of really awful ones? I know Java is not the best language, it's not my favorite language, but I wouldn't say its really awful.
- kyllo 11y agoTwo words: no functions.
- jstuxx 11y agoJava has functions one word "static".
- kyllo 11y agoYou can't pass a static method as an argument to another static method. You can't write a static method that returns a static method. You can't partially apply a static method. Static methods are not functions.
- sebastianconcpt 11y agoYeah, it do not have closures
- notduncansmith 11y agoI think Kyllo was referring more to first-class/higher-order functions. I believe Java 8 added support for lambda expressions, but it's nowhere near the same thing.
- sebastianconcpt 11y agoI think so too and agree about the power of being consistent with first class things (functions in this case)
- RazvanPanda 11y agoJava 8 does have functions as values/lambdas
- jstuxx 11y agoThat's the lack of higher order functions and the lack of first class functions. Anyway I think higher order functions and method references have been added to Java 8 as well as Lambda functions.