3 ms·
This is a measurement error: the idea behind Rust is to make the ratio between logic and memory errors infinite, by eliminating memory errors as a bug class (to
by woodruffw 4y ago
This is a measurement error: the idea behind Rust is to make the ratio between logic and memory errors infinite, by eliminating memory errors as a bug class (to a vanishing degree, anyways).
Besides, logic errors in Rust don't cause memory errors as knock-on effects. Most of my logic errors in C and C++ codebases ultimately manifested as some form of unsound memory access.
- rich_sasha 4y agoIt's quite easy to accidentally segfault a C++ program. IME so far it's much harder to accidentally segfault a Rust one. Even unwrap et al are useful, because they show you explicitly where you assume something potentially unsafe is happening.