r/Clojure • • Aug 11 '18

Error message improvements in Clojure 1.10

https://mobile.twitter.com/puredanger/status/1028103654241443840
89 Upvotes

41 comments sorted by

View all comments

-4

u/clj_user Aug 13 '18

So we've waited years for good error messages for almost a decade, and we get:

  1. More distinct error types: Arithmetic/Compile/Syntax exceptions vs Runtime exceptions

  2. Inclusion of more information around the error: symbol given, macro being defined

  3. Suppression of gook dumped into the error by spec.

Fantastic! It's been 2 years since Spec was released, and almost 10 years since Clojure 1.0. And we're finally getting features that any self-respecting language should include in the original release. And in the mean time clojure developers have had to rationalize away why these errors are so bad:

https://lispcast.com/clojure-error-messages-accidental/

https://www.youtube.com/watch?v=FihU5JxmnBg

http://blog.cognitect.com/blog/2017/6/5/repl-debugging-no-stacktrace-required

What frustrates me is being told that Clojure doesn't need good error messages, because "garbage in, garbage out", or REPL driven development means we don't need good stack traces. And now it all matters because the core devs care now.

Too little, too late. From what I can tell, those who would be impacted by this have already left the language.