It doesn't work well at all for transactions, where both A and B must succeed or neither.
https://dlang.org/articles/exception-safe.html
Do you know if a similar, more granular approach (scope(exit)=~finally, scope(failure)=~catch, scope(success)=else) over go-style defer=~finally is implemented elsewhere than D?
It doesn't work well at all for transactions, where both A and B must succeed or neither.
https://dlang.org/articles/exception-safe.html