Earlier quoted context omitted.
That's what it does in Go too. This is totally defer in the Go sense (except they fixed the scoping issue).
Not quite. "The central idea behind defer is that, unlike its Go counterpart, defer in C is lexically bound, or “translation-time” only, or “statically scoped”" Defer in Go puts the deferred action on a run time to-do list that's processed at function exit. You can queue up deferred actions from a loop in Go. Not in this proposal for C. What happens in this C proposal if you put a defer request inside a loop? Is it a…
> except they fixed the scoping issue
> What happens in this C proposal if you put a defer request inside a loop?
It executes at the end of the loop body.