News for hackers. Stuff that matters.
Re:Anti-If: The missing patterns (2016) by mjevans on Wednesday June 27, 2018 @05:53PM (#17412153)
Deferred statements (in go) are really useful for delaying the runtime of blocks of code to the end of a context, but leaving them in the logical context where you're setting up a resource.

I'm actually not sure offhand how multiple deferred statements are handled. I could envision that the specification might make no explicit guarantee about the runtime order or it might create and pop off of a stack (at least in behavior).

There are no comments on this comment yet.