|
|
|
|
|
by consp
232 days ago
|
|
> It is true that the borrow checker doesn't prevent ALL bugs though. True, but "prevents all bugs" is that what the debate pretty much digests to in the "rust is better" debate. So you end up with rewrites of code which introduce errors any programmer in any language can make and since you do a full rewrite that WILL happen no matter what you do. If that's acceptable fine, otherwise not. But you cannot hide from it. |
|
Memory-related bugs is, like, 70% of bugs found in programs written in C and C++.
So, by rewriting in Rust, you prevent 70% of new bugs from happening, because a whole class of bugs just cease to exist.