Re:What’s in a Continuation (2016)
by fiddlerwoaroof on Sunday July 02, 2017 @01:22AM
(#14681044)
I think common lisp's restart system and/or delimited continuations handle most of the "reasonable" uses of continuations without some of the less intuitive aspects of full continuations.
[ Parent
| on HN ]
> I think common lisp's restart system and/or delimited continuations handle most of the "reasonable" uses of continuations without some of the less intuitive aspects of full continuations.
As you may know, Oleg makes the same argument, that call/cc has a lot of problems, and, in practice, isn't really used anyway: http://okmij.org/ftp/continuations/against-callcc.html#illus... . (EDIT: I see that sillysaurus (https://news.ycombinator.com/item?id=14680711) linked this same discussion a while ago.)
Delimited continuations are the full ones.
The so-called full continuations lack the flexibility to put the delimiting prompt anywhere but the top-level entry point to the program or thread.
Delimited continuations are complete in the sense that they let the programmer control where the top is.
Put the delimiting prompt around the top-level startup function and you have a "full" continuation.