Re:Cooperative Threading
by gpderetta on Wednesday November 13, 2019 @06:14AM
(#21522889)
You could argue that coroutines as originally specified implied stackless-ness: it was just a generalization of a subroutine that could return (to its immediate caller) multiple times, so at most one stack frame need to be preserved.
A better name for stackful coroutines is one-shot continuations.
A better name for stackful coroutines is one-shot continuations.