2 ms·
using and/or finally are things you have to get right every time you instantiate the class, and if you get it wrong you no longer get deterministic destruction.
by deadbeeves 4y ago
using and/or finally are things you have to get right every time you instantiate the class, and if you get it wrong you no longer get deterministic destruction. Compare with C++, where RAII is the default policy and you have to take extra steps to get dynamic lifetimes.