Re:Rust is hard, yes, but does it matter?
by pornel on Monday May 09, 2022 @10:01PM
(#31322520)
For projects that need to have high security and reliability, I'm much more confident adding novice Rust developers to Rust projects than novice C++ developers to C++ projects.
Rust limits severity of the damage an inexperienced programmer can cause. It is hard for a noob to get past the compiler, but once they do, the code already has lots of correctness guarantees. “Bad” Rust code may clone() more than strictly necessary, or waste 10 lines of code for something that has a 1-liner in the standard library, but it won't corrupt memory (noobs will know to stay away from unsafe{}, and that can even be enforced). Rust prefers to be locally explicit, so it’s also easy to review.
Rust limits severity of the damage an inexperienced programmer can cause. It is hard for a noob to get past the compiler, but once they do, the code already has lots of correctness guarantees. “Bad” Rust code may clone() more than strictly necessary, or waste 10 lines of code for something that has a 1-liner in the standard library, but it won't corrupt memory (noobs will know to stay away from unsafe{}, and that can even be enforced). Rust prefers to be locally explicit, so it’s also easy to review.