Adding static continuations with shift/reset to Ark allows me to implement exceptions, generators, coroutines etc.
For JavaScript-based implementations, there's a limitation: continuations are one-shot. The immutagen library hacks around this: https://github.com/pelotom/immutagen with a quadratic performance penalty.
Adding static continuations with shift/reset to Ark allows me to implement exceptions, generators, coroutines etc.
For JavaScript-based implementations, there's a limitation: continuations are one-shot. The immutagen library hacks around this: https://github.com/pelotom/immutagen with a quadratic performance penalty.