6 ms·
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
by kojolina 2y 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.
- saagarjha 2y agoI assure you that people do not go for better options
- nextn 2y agoWhy is RAII bad?
- GoblinSlayer 2y agoBecause it's micromanagement.
- nextn 2y agoMicromanagement how?
- RossBencina 2y agoRAII 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.