Delimited continuations in emacs lisp! https://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00255.html
(I'm not sure if this is lovely or totally bananas.)
miniblog.
Related Posts
Cute demonstration of implementing generators in terms of delimited continuations: https://defn.io/2019/09/05/racket-generators/
It might be Scheme, but the examples have a lot of syntax! parameterize, let loop, variadic functions, call-with-continuation-prompt (with 2 or 3 args).
Implementing scope in an interpreter using shift/reset for delimited continuations: https://blog.moertel.com/posts/2005-09-13-scope-herding-with-delimited-continuations.html
It's arguably overkill for the problem, but it's a well-argued introduction to shift and reset.
TIL that common lisp has delimited GOTO using tagbody: http://t.co/NLReyvSN4R . With hindsight it's not surprising (hypermultiparadigm!)