r/Clojure • • Dec 18 '18

Clojure 1.10 error messages

http://insideclojure.org/2018/12/17/errors/
92 Upvotes

23 comments sorted by

View all comments

Show parent comments

2

u/alexdmiller Dec 18 '18

Not sure what you mean? Things that previously threw exceptions should continue to do so, but with more data and (if at the repl) better messages.

2

u/stingraycharles Dec 18 '18

I typically use refresh-all to reload my code; since the examples are all very much focused on everything in an isolated REPL session without loading files. I was wondering whether these error improvements will also we available when code is evaluated using `require` or `refresh-all`.

2

u/alexdmiller Dec 18 '18

Certainly, if you are doing 'require' at the REPL, you will see the same behavior (except locations will be at "(foo.clj:10:0)" instead of "(REPL:10:0)"). So, I believe you should see things as expected. But try it and see!

3

u/stingraycharles Dec 18 '18

That's great news, and the answer I was hoping for. I'll probably give it a try this week!