7 ms·
From the article: > The magic is that all Scheme code, by virtue of supporting the capture (and unwind) of delimited continuation Is that true? I thought Rack
by threepio 5y ago
From the article:
> The magic is that all Scheme code, by virtue of supporting the capture (and unwind) of delimited continuation
Is that true? I thought Racket was the only Scheme (and maybe the only language in general) that supported delimited continuations.
- rscho 5y agoNope, there are others. Prolog, for example: https://www.swi-prolog.org/pldoc/man?section=delcont https://www.swi-prolog.org/pldoc/man?section=delcont
- pkhuong 5y agoYou can implement delimited continuations with regular call/cc and a mutable cell. Of course, like all abstractions based on raw call/cc, it's not modular: you can't do that and use the result inside, for example, a multitasking scheduler that itself uses raw call/cc as well. http://okmij.org/ftp/continuations/against-callcc.html#traps http://okmij.org/ftp/continuations/against-callcc.html#traps Closer to your point, there are a few other implementations that offer delimited continuations natively. See https://wingolog.org/archives/2010/02/26/guile-and-delimited-continuations https://wingolog.org/archives/2010/02/26/guile-and-delimited... for a 11 year old post on adding them to guile scheme.