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