News for hackers. Stuff that matters.
Re:Implementing Go's defer keyword in C++ by ohnoesjmr on Saturday October 21, 2017 @08:49PM (#15524491)
The problem with contexts is that can't just innocently enter one in some if branch where the rest of the code would be scoped.

I ended up an OnExit() context that does:

    if conn is not None:
        ctx.call(conn.close)

There are no comments on this comment yet.