Re:Is Typed Clojure worth the trouble?
by kyllo on Tuesday June 23, 2015 @02:42PM
(#9766755)
Two words: no functions.
[ Parent
| on HN ]
Java has functions one word "static".
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
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.