Is there any way to implement Go-like "defer" in a zero-cost way, like RAII? I don't see any way to do it.
-
-
@pcwalton does deferred code run on normal exit or just panic? -
@samth It runs on both, but whether the code actually needs to run is determined at runtime. - 8 more replies
New conversation -
-
New conversation
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.