3 ms·
RAII.
by dman 13y ago
RAII.
- jgreen10 13y agoYou don't need RAII if you don't have exceptions. Separating allocation and initialization is a good thing.
- dman 13y agoRAII is used for idiomatic cleanup from a function. In C the way to handle that would be to have a cleanup section in every function and then doing a goto to that which adds clutter to the function.