Hacker News new | past | comments | ask | show | jobs | submit login

> 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."




There 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: