News for hackers. Stuff that matters.
Re:More Gotchas of Defer in Go, Part II by brabel on Thursday December 21, 2017 @12:03PM (#15980547)
Every point mentioned was not a gotcha to anyone who read the official introductory tour of the language. The behaviour may be unexpected to newbies, but if you spent an hour or so learning the language, you shouldn't be falling for these.
Re:More Gotchas of Defer in Go, Part II by bsaul on Thursday December 21, 2017 @04:41PM (#15983045)
Completely agree. This is probably the most comprehensible list of programming language « gotchas » i’ve ever read. It feels really a confirmation that the language authors have succeeded in their goal for simplicity.
Re:More Gotchas of Defer in Go, Part II by inancgumus on Thursday December 21, 2017 @04:08PM (#15982767)
Check out the first part too: https://blog.learngoprogramming.com/gotchas-of-defer-in-go-1...

I fell to these when I was learning Go for the first time and then I've seen many people also did so. There is no rule like these are gotchas for everyone.