Why are delimited continuation primitives named “shift” and “reset”?

They’re called so because of the way they are implemented (in general). Quoted from Direct Implementation of Shift and Reset in the MinCaml Compiler By interpreting a program using the continuation semantics, we can regard the state of the program as a continuation stack. Then, reset can be thought of as marking the continuation stack, … Read more

What exactly is a “continuation prompt?”

What is a prompt, conceptually? Scheme in general has the idea of continuations, but Racket extends this with the idea of delimited continuations. The idea of a continuation is that it captures the remaining computation left to be evaluated. I will not attempt to explain continuations in general, since that is outside the scope of … Read more

tech