Re:The Common Lisp Condition System – Upcoming Book
by db48x on Wednesday July 15, 2020 @12:27PM
(#23847545)
They are callbacks, but when they return they don't return to you. Instead they return back up the stack to whoever called the function that signalled the condition.
[ Parent
| on HN ]
Re:The Common Lisp Condition System – Upcoming Book
by phoe-krk on Wednesday July 15, 2020 @12:38PM
(#23847714)
> Instead they return back up the stack to whoever called the function that signalled the condition.
Not necessarily. They may return to any point on the stack that has been "announced" as a valid return point. One can compute a list of these return points, choose which one to utilize, and under which conditions.
That's what constitutes the power of restarts (and non-local exits) in Common Lisp.