News for hackers. Stuff that matters.
Re:Is Typed Clojure worth the trouble? by kyllo on Tuesday June 23, 2015 @02:42PM (#9766755)
Two words: no functions.
Re:Is Typed Clojure worth the trouble? by jstuxx on Tuesday June 23, 2015 @03:39PM (#9767198)
Java has functions one word "static".
Re:Is Typed Clojure worth the trouble? by kyllo on Tuesday June 23, 2015 @07:26PM (#9768495)
You 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.
Re:Is Typed Clojure worth the trouble? by sebastianconcpt on Tuesday June 23, 2015 @08:53PM (#9768882)
Yeah, it do not have closures
Re:Is Typed Clojure worth the trouble? by notduncansmith on Wednesday June 24, 2015 @02:01AM (#9769916)
I 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.
Re:Is Typed Clojure worth the trouble? by sebastianconcpt on Wednesday June 24, 2015 @08:27AM (#9771075)
I think so too and agree about the power of being consistent with first class things (functions in this case)
Re:Is Typed Clojure worth the trouble? by RazvanPanda on Tuesday June 30, 2015 @02:56PM (#9807627)
Java 8 does have functions as values/lambdas
Re:Is Typed Clojure worth the trouble? by jstuxx on Wednesday June 24, 2015 @04:29AM (#9770346)
That'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.