3 ms·
I understand that. I was talking about the high-level idea of using RAII to manage memory. Parent was talking as if that was unique to C++, while Rust also has
by maleldil 4y ago
I understand that. I was talking about the high-level idea of using RAII to manage memory. Parent was talking as if that was unique to C++, while Rust also has it and does it better, for the reasons you stated.
Rust defaulting to move-semantics and requiring explict copies is one of the best decisions in the language.