3 ms·
I think Clojure is a great language. Using it requires taking dependencies on Java and the JVM or JavaScript and Closure. And those are what throw the exception
by brudgers 11y ago
I think Clojure is a great language. Using it requires taking dependencies on Java and the JVM or JavaScript and Closure. And those are what throw the exceptions and the context in which exceptions are described [Scala is similar]. That's the cost for the potential speed that comes from developing a new language as an embedded language versus from the ground up.
For Clojure's target audience of people who already know Java (or JavaScript) there's a lot of evidence that it was a good decision. Tools like Leiningen can use a familar tree structure and offer the potential benefit of configuration via code in comparison to other Java build tools. But the point of comparison is at a particular level of overhead and that level of overhead is assumed. With ClojureScript, the toolchain is more complicated than a typical JavaScript tool chain. Again that's a tradeoff.
Which again, I think Clojure is great. That doesn't mean I think that those tradeoffs are always appropriate. YMMV.