3 ms·
Someone added conditions/restarts to Clojure: https://github.com/IGJoshua/farolero https://github.com/IGJoshua/farolero It does allow errors to be caught by th
by didibus 5y ago
Someone added conditions/restarts to Clojure: https://github.com/IGJoshua/farolero https://github.com/IGJoshua/farolero
It does allow errors to be caught by the Repl and choose how to handle them.
Honestly though, I haven't found the interactive restarts at the REPL useful. It's way faster to just re-evaluate the code again.
Maybe in CL they are more useful because the language is full of mutation? I can't say, I've only ever done Clojure and Emacs Lisp, but in Clojure I tried that library, and found picking options at the REPL to handle the condition was more laborious than just fixing whatever or adding a catch and pressing Ctrl+Enter again.