4 ms·
I can't find the quote for the of me, but it was from Rich Hickey and went something like: "First, you use Clojure to escape Java. Then, you use Clojure to writ
by rjeli 9y ago
I can't find the quote for the of me, but it was from Rich Hickey and went something like: "First, you use Clojure to escape Java. Then, you use Clojure to write better Java."
I definitely found it to be true. Clojure takes the good parts of Java's OO system.
- cutler 9y agoDoesn't make any sense as Rich makes a big point of having wasted years writing large applications in Java and C++ before discovering Lisp and FP. If anything Clojure is the ultimate anti-OOP which, I think, partly explains its lack of adoption sitting, as it does, on top of a mass of libraries designed with OOP.
- rjeli 9y agook, found it: https://stuartsierra.com/2008/08/08/clojure-for-the-semantic-web https://stuartsierra.com/2008/08/08/clojure-for-the-semantic... I think it was in reference to the java ecosystem, more than "a better way to write java," although I still see it that way.
- cutler 9y agoHow can Clojure be reduced to "a better way to write Java" when you can live quite happily in Clojureland without writing a line of Java or importing a Java library?
- dragonwriter 9y ago> Clojure takes the good parts of Java's OO system. Such as?
- rjeli 9y agoProtocols from interfaces and multimethods from overloading. Although, to be honest, I've barely ever used them because FP is so easy in clojure. The few times I have, they make sense.