in reply to Re: (Semi-OT) Coroutine vs Continuation?
in thread (Semi-OT) Coroutine vs Continuation?
From my (also limited) understanding, one of the benefits of the contnuation passing style is that exception handling can unwind back to any point in the call stack and continue (maybe hence the name?).
It also makes coroutines very easy to implement (I believe).
That said, there are easier, cheaper ways of achieving coroutines and implementing exception handling. The overhead in retaining snapshots of the stack at every level of continuation seems immense for very limited benefits to my eyes, but then as I said, my understanding is limited.
|
|---|