News for hackers. Stuff that matters.
Re:More Gotchas of Defer in Go, Part II by pcwalton on Thursday December 21, 2017 @01:57PM (#15981707)
Fair enough. But it's something like 5 lines of code to write that manually, and writing it explicitly is clearer. With implicit function-scoped defer, someone might refactor the code to inline the body of the function into its caller and break it.
Re:More Gotchas of Defer in Go, Part II by br1 on Thursday December 21, 2017 @02:01PM (#15981748)
I totally agree with you.