>>101
So, nothing, really, if you've got mutable state, you can just drop delimited continuations, the only advantages are efficiency, readability, ease of use, theoretical beauty, and the lack of need of harmful mutable state.
While I do not particularly feel like arguing whether mutable state is indeed
that harmful, I would like to know why you said delimited continuations are more efficient than mutable state. An example of a case where delimited continuations are more efficient than set!ting things around would be really nice too, if you don't mind.
I would also like to argue whether delimited continuations, when used to hack around mutable state, make the code more readable. Implementing things like generators and restartable exceptions does cause code to be a lot cleaner and more readable, but I can't see much uses past that
maybe except implementing yet another version of the amb operator.