Hacker News new | ask | show | jobs
by nyanpasu64 2218 days ago
I feel that defer is lower-level than C++ RAII which happens automatically in destructors without manually specifying. C has compiler-specific defers, and you can emulate defer using C++ RAII (though clunky).