by jstimpfle · 4y ago · 0 comments
And besides, if resources aren't released in the same function you'd need to come up with a different way to clean up anyway.
Yes, and if a defer keyword were to be introduced in C, all these reasonable ways could still be used by anyone who wants to, while we could let the compiler handle it when we don't want to, making the source easier to read and reason about.