News for hackers. Stuff that matters.
Re:More Gotchas of Defer in Go, Part II by pcwalton on Thursday December 21, 2017 @01:53PM (#15981677)
But that defer is already lexically at the function scope, so block-scoped defer would do the same thing.
Re:More Gotchas of Defer in Go, Part II by barsonme on Thursday December 21, 2017 @04:31PM (#15982960)
Ah, sorry, you meant function-scoped vs block-scoped not just in general. Yeah, agreed.