3 ms·
> Memory management is difficult, extremely difficult, to get correct in the way rust does Memory management isn't hard --- you just need to pay attention to d
by quotemstr 10y ago
> Memory management is difficult, extremely difficult, to get correct in the way rust does
Memory management isn't hard --- you just need to pay attention to detail and not say "YOLO, let's abort on OOM" like the Rust stdlib does. Rust is an unacceptable language for anyone who cares about robustly responding to heap exhaustion.
- Turing_Machine 10y ago"Memory management isn't hard --- you just need to pay attention to detail" You're quite right. The problem is that every bit of attention you spend on that detail is attention that you're not spending on details that are actually solving your problem. I programmed in C for decades. I do not miss malloc() and free() in the least. (I still do use C when the situation warrants, but the situations where it is warranted are becoming rarer and rarer with each passing year).