2 ms·
Ah... it's that thing that stars a debugger when you hit an exception, right?
by iLemming 2y ago
Ah... it's that thing that stars a debugger when you hit an exception, right?
- brabel 2y agoCommon Lisp has the Condition System [1] and that is not a continuation mechanism, though it may seem similar because you can stop a computation and resume it with a different value, for example. I think that to classify as a continuation, CL would just need to expose the condition system's internals to allow the user to choose how to "use" it, but as it is, you can't: the only way to use conditions is to have predefined handlers for them... I remember that this was an important difference because with delimited continuations you can implement stuff (like async/await I think - probably most Monads?) that you can't in CL's Condition Systems (I can't find the article talking about this right now, hopefully someone else can chip in). [1] https://lisp-docs.github.io/cl-language-reference/chap-9/j-b-condition-system-concepts https://lisp-docs.github.io/cl-language-reference/chap-9/j-b...
- iLemming 2y agoWhoa, thank you. You made me look up for 'condition system in Clojure' and I found these: https://andreyor.st/posts/2021-04-17-condition-system-in-clojure/#:~:text=So%2C%20the%20condition%20system%20consists,condition%20system%20to%20signal%20errors%2e https://andreyor.st/posts/2021-04-17-condition-system-in-clo... https://www.reddit.com/r/Clojure/comments/mocs6d/common_lisp_style_conditionsrestarts_in_clojure/ https://www.reddit.com/r/Clojure/comments/mocs6d/common_lisp... https://www.youtube.com/watch?v=zp0OEDcAro0 https://www.youtube.com/watch?v=zp0OEDcAro0