2 ms·
call/cc can be built entirely out of CPS and closures of indefinite extent (i.e., allocated on the heap). Using CPS with closures of dynamic extent (i.e., allo
by cryptonector 6y ago
call/cc can be built entirely out of CPS and closures of indefinite extent (i.e., allocated on the heap).
Using CPS with closures of dynamic extent (i.e., allocated on the stack, either explicitly, or because that's all you get, or because the compiler is smart enough to figure out that these closures don't leak out) is a lot more like delimited continuations (but easier to use).