Hacker News new | ask | show | jobs
by kojolina 492 days ago
Nah, rust also guides you to "death from a million paper cuts" aka RAII (aka everything is singularly allocated and free'd all over the place).

You need memory management to be painful like in C so that it forces people to go for better options like linear/static group allocations.

2 comments

I assure you that people do not go for better options
Why is RAII bad?
RAII is fine when it is the right tool for the job. Is it the right tool for every job? Certainly there are other more or less widely practiced approaches. In some situations you can come up with something that is provably correct and performs better (in space and/or time). Then there are just trade-offs.
Because it's micromanagement.
Micromanagement how?