4 ms·
The various tradeoffs between try-finally, RAII, and scope guard is discussed here: http://www.d-programming-language.org/exception-safe.html http://www.d-prog
by WalterBright 15y ago
The various tradeoffs between try-finally, RAII, and scope guard is discussed here:
http://www.d-programming-language.org/exception-safe.html http://www.d-programming-language.org/exception-safe.html
Scope guard has a number of distinct advantages.