News for hackers. Stuff that matters.
Re:A Defer Mechanism for C by dnautics on Monday December 14, 2020 @10:46AM (#25418831)
yes, you always run defer. I don't see it in this proposal, but Most languages/frameworks that implement a defer also implement a "error defer" which only gets triggered on some sort of labeled early exit scenario, and some implement "success defer": (i believe this is scopeguard: https://www.youtube.com/watch?v=WjTrfoiB0MQ)

There are no comments on this comment yet.