Re:Implementing Go's defer keyword in C++
by int_19h on Saturday October 21, 2017 @10:56PM
(#15524919)
Ruby does this at the cost of having non-local returns from those blocks, which complicates semantics quite a bit (since now you need to distinguish closures that capture "return" and other control transfer from those that don't, and you need to handle the scenario where a control transfer happens when the target is already gone).
[ Parent
| on HN ]
There are no comments on this comment yet.