News for hackers. Stuff that matters.
Re:Implementing Go's defer keyword in C++ by mhh__ on Saturday October 21, 2017 @05:54PM (#15523818)
I feel that the way this is implemented in the D programming language is more natural (Subjective, of course): https://tour.dlang.org/tour/en/gems/scope-guards

Although this approach would probably not work like this in Go given Go's lack of exceptions.

There are no comments on this comment yet.