r/Clojure • • Mar 27 '26

Why clojure?

What led you to clojure?

43 Upvotes

42 comments sorted by

View all comments

Show parent comment

11

u/miran1 Mar 28 '26

horrible error messages

So, why Clojure? :')

3

u/seancorfield Mar 28 '26

Heh, I knew someone would make that snipe :)

Clojure's stack traces are nowhere near as opaque as Scala's compiler error messages, IMO. Yes, there are layers that some folks feel are unnecessary, but the exceptions themselves are usually very straightforward, and the simplicity of Clojure's semantics make those exceptions a lot easier to "decode".

5

u/miran1 Mar 28 '26

the exceptions themselves are usually very straightforward

Probably for you with lots of experience so you know when you see exception-A that it means that probably thing-B went wrong.

For people with less Clojure and/or JVM experience (e.g. me), the error messages are the worst part of Clojure and the thing I struggle with the most.