2 ms·
> Manual memory management isn't dangerous, malloc and low level primitives are That is somewhat self-contradictory. Those "low level primitives" are manual me
by Someone1234 12y ago
> Manual memory management isn't dangerous, malloc and low level primitives are
That is somewhat self-contradictory. Those "low level primitives" are manual memory management, so even by your own admission it is dangerous. Even Wikipedia calls smart pointers "automatic memory management."
- AnthonyMouse 12y agoThere is a distinction to be drawn between a) malloc/free, b) RAII as with Rust or modern C++ and c) garbage collection. We can have a debate about whether RAII is "manual memory management" or not, but it's clearly safer than malloc/free without the inefficiency of garbage collection.