2 ms·
> just sounds like it describes object constructors. I think I've said this verbatim, so you have my vote. I'm curious what other names people might give it.
by kjeetgill 4y ago
> just sounds like it describes object constructors.
I think I've said this verbatim, so you have my vote. I'm curious what other names people might give it.
Wikipedia gives:
> Other names for this idiom include Constructor Acquires, Destructor Releases (CADRe) and one particular style of use is called Scope-based Resource Management (SBRM).