News for hackers. Stuff that matters.
Re:Implementing Go's defer keyword in C++ by mappu on Saturday October 21, 2017 @05:43PM (#15523770)
The ScopeGuard RAII destructor will be called at the end of the scope, but Go's defer will be called at the end of the function.

e.g. in Go can you can defer inside a for loop.

There are no comments on this comment yet.