3 ms·
Rust will catch problems that would be UB in C and would continue executing in an invalid state. Crashing is preferable in such scenarios because you avoid pote
by K0nserv 5y ago
Rust will catch problems that would be UB in C and would continue executing in an invalid state. Crashing is preferable in such scenarios because you avoid potential security issues stemming from the UB and the developers can find out about the problem.
I bet Rust programs crash more frequently than C programs overall. Undetected UB is far less desirable than clean panics though.