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.
@samth It runs on both, but whether the code actually needs to run is determined at runtime.
-
-
@pcwalton Determined how? -
@samth func Foo() { ... if bar() { defer baz(); } ... /* baz() only runs here if bar() evaluated to true */ } - 6 more replies
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.