.@samth Right, zero bookkeeping cost in the no-throw (no-panic) path.
-
-
Replying to @___mna___
@PuerkitoBio How would you implement it? Remember "defer"red functions must execute at the end of the function, not end of block.
2 replies 0 retweets 0 likes -
Replying to @pcwalton
@pcwalton I haven't checked the assembly output (use go tool 6c -S FILE), but nothing gets evaluated in this case: http://play.golang.org/p/w12VUpT7ZP1 reply 0 retweets 0 likes -
Replying to @___mna___
@PuerkitoBio I mean that "defer" has no runtime overhead when control flow encounters it, only when unwinding or exiting the function.
2 replies 0 retweets 0 likes
Replying to @___mna___
@PuerkitoBio Via an indirect function call and a push onto a per-function list, no? RAII is direct function calls and no-per-function list.
4:08 PM - 12 Oct 2013
0 replies
0 retweets
0 likes
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.