upvote
Considering that LLMs more often than not forget stuff when writing code, I definitely prefer Rust's automatic memory management system compared to balancing mallocs and frees throughout the code.

You could do RAII in C++, but the compiler won't warn on unsafe code.

reply
C is a loaded gun pointed at your foot regarding memory management. Rust directs your gun somewhere safer. That is why.
reply