4 ms·
Continuations work the same way without a stack, incidentally. You are still saving the FP, either way. I'm not aware of languages that don't have a FP of some
by sago 11y ago
Continuations work the same way without a stack, incidentally. You are still saving the FP, either way. I'm not aware of languages that don't have a FP of some kind.
Interesting on the last point, that you'd find coroutines harder to explain with 'save the current place you're executing, go do something else, return to that place when you need to do more'.