Sobeston / zig.guide

Repo for https://zig.guide content. Get up to speed with Zig quickly.
https://zig.guide
MIT License
647 stars 170 forks source link

Update 07-defer.mdx #213

Closed peterekepeter closed 7 months ago

peterekepeter commented 8 months ago

I think that the article can be extended a bit to explain what problems defer can be used to solve. Otherwise just giving the raw explanation while its technically correct, it looks more like an exotic language feature rather than a language feature which fixes memory leaks.