2 ms·
> The book also contains a description of a full implementation of a condition system that can (and hopefully will!) be used outside Common Lisp Do you foresee
by aidenn0 6y ago
> The book also contains a description of a full implementation of a condition system that can (and hopefully will!) be used outside Common Lisp
Do you foresee any issues with other languages only having dynamic (i.e. THROW) non-local transfers of control rather than lexical as well (i.e. GO). I find it convenient for when I want to conditionally unwind the stack to have lexical transfers, and obviously it's been demonstrated you can implement GO with just THROW, so there's no loss of generality, but I wonder what the ergonomic impact will be.
- phoe-krk 6y agoNone, other than for sheer performance. (THROW will perform worse than GO and RETURN since the list of catch tag will need to be traversed on each throw.) As you mentioned, one can implement both GO and RETURN via THROW plus gensyms - see https://web.archive.org/web/20191008050814/http://home.pipeline.com/~hbaker1/MetaCircular.html https://web.archive.org/web/20191008050814/http://home.pipel... for an implementation.