2 ms·
Unwind protect doesn't work when you have multi-shot continuations. The question is whether you should have multi-shot continuations. I would say yes (but delim
by bjoli 9y ago
Unwind protect doesn't work when you have multi-shot continuations. The question is whether you should have multi-shot continuations. I would say yes (but delimited since they are easier to reason about and superior in every way).
We could bolt on a simpler exit facility on top of call/cc with support for proper unwind protect, but it would not bring much compared to a simple macro hiding the ugly parts of dynamic wind (and of course: making sure to only use continuations once... ).