2 ms·
> Common Lisp provides parallel but unrelated operators such as HANDLER-BIND and HANDLER-CASE for dealing with handlers, and RESTART-BIND and RESTART-CASE for d
by kazinator 5y ago
> Common Lisp provides parallel but unrelated operators such as HANDLER-BIND and HANDLER-CASE for dealing with handlers, and RESTART-BIND and RESTART-CASE for dealing with restarts. It was thought that these were orthogonal operations, requiring unrelated dataflow, that really didn't belong intermingled. The Dylan community has sought to coalesce these by making restarts into a kind of condition, and eliminating special binding forms for them.
I'm surprised to read about this bit about Dylan for the first time; I missed that in past readings.
I also coalesced handling and restarting in TXR Lisp. There are no restarts, only exceptions. An exception can be handled (which is the terminology for intercepted without unwinding the stack) or caught (which is the terminology for intercepting and unwinding). The symbol restart is provided as the root of the hierarchy for restarts; the reference manual encourages the practice of deriving restart-like exceptions from this symbol.
https://www.nongnu.org/txr/txr-manpage.html#N-00F77525 https://www.nongnu.org/txr/txr-manpage.html#N-00F77525