3 ms·
RAII is awfully misnamed. It's not about initialization. It's about cleanup. The initialization aspect of RAII is incidental to its main purpose/use -- perha
by cryptonector 4y ago
RAII is awfully misnamed.
It's not about initialization. It's about cleanup. The initialization aspect of RAII is incidental to its main purpose/use -- perhaps essential to it too, but not so essential that initialization becomes more the essence of RAII than cleanup.
It's really a C++ specific form of Lisp's unwind-protect.