|
|
|
|
|
by uecker
702 days ago
|
|
The point is that merely using Rust would not automatically prevent this problem. Of course you could use Rust and forbid all unwrap(). But then question is why you could not forbid all unchecked dereferences (e.g. ensured with static analysis) in C/C++. The problem with C/C++ is not that this is impossible, it is that this is not done. |
|
To answer your question - it's much easier to fall into the pit of success when using Rust.
Sure C++ users could set up ASAN, UBSAN etc., but it's extra effort and many people don't bother.