3 ms·
Multiple entry/exit points is the defining characteristic of coroutines(as described by Knuth.) The functional equivalent would be (delimited) continuations an
by tpush 9y ago
Multiple entry/exit points is the defining characteristic of coroutines(as described by Knuth.)
The functional equivalent would be (delimited) continuations and is extremely powerful (but potentially confusing in an untyped context.)