3 ms·
So it's better, safer, but still manual memory management.
by kazagistar 10y ago
So it's better, safer, but still manual memory management.
- pjmlp 10y agoNot quite, because the rules are enforced by the compiler. In C++ the rules are enforced by optional tooling that most developers don't use. At CppCon 2015, only 1% of the audience acknowledged using such tools at Herb's talk about the core guidelines.
- Manishearth 10y agoIt's still automatic. You don't need to call free. The only difference is that you need to deal with whether or not things go on the heap, are refcounted, etc (but this decision is in the types, so you make it once and are done). Whether or not that's "manual" depends on your point of view. I consider it to be more along the lines of choosing guarantees.