Re:Things Rust shipped without
by pcwalton on Friday July 03, 2015 @10:29PM
(#9828888)
defer isn't a superset of RAII. defer is function-scoped. RAII is block-scoped. If you want to run code at the end of a block, you can do that with RAII and you can't do that with defer—and note that this is what causes all the codegen issues with defer.
[ Parent
| on HN ]
There are no comments on this comment yet.