Re:More Gotchas of Defer in Go, Part II
by ramenmeal on Friday December 22, 2017 @01:42AM
(#15985685)
I code in go every day professionally. These are not gotchas, they are well defined behaviors.
[ Parent
| on HN ]
Re:More Gotchas of Defer in Go, Part II
by inancgumus on Friday December 22, 2017 @06:54AM
(#15986832)
Check out the first part too. Btw, gotcha means what you say: "a gotcha ... works as documented but is counter-intuitive and almost invites mistakes ..." https://en.wikipedia.org/wiki/Gotcha_(programming)