3 ms·
Once for every struct/class, which is much better than once for every individual resource used.
by catnaroek 10y ago
Once for every struct/class, which is much better than once for every individual resource used.
- pjmlp 10y agoYou don't need to do it for every individual resource used, specially if the language has support for meta-programming. I guess these FP patterns are yet to be widely known.
- gpderetta 10y agoThe biggest difference between RAII and other approaches based on higher order functions and closures is that RAII is bound to object lifetimes, while other approaches are bound to scopes. They compose differently.