Wow is Golang's defer full of awful behavior.https://blog.learngoprogramming.com/5-gotchas-of-defer-in-go-golang-part-ii-cc550f6ad9aa …
-
-
Replying to @KirinDave
Yeah, defer was (still is) originally implemented by pushing activations onto an invisible per-function stack and popping them at return.
1 reply 0 retweets 4 likes
Replying to @pcwalton @KirinDave
Its ultra-dynamic nature causes all sorts of problems. I wish the Go team had cleaned this obvious mistake up before freezing the language…
9:44 AM - 21 Dec 2017
0 replies
0 retweets
2 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.