3 ms·
You don't need RAII if you don't have exceptions. Separating allocation and initialization is a good thing.
by jgreen10 13y ago
You 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.