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.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
  • Comment on Re^2: (Semi-OT) Coroutine vs Continuation?