|
|
|
|
|
by gpm
2674 days ago
|
|
That's true, but 'null pointer exceptions' (which I suppose means expecting a Option<&T> to contain a &T when it is instead empty) are much rarer since nullability is made explicit. Rust goals in life towards bugs are basically - Isolate memory bugs to unsafe code which you rarely write. - Make as many classes as bugs reasonably possible rarer by encoding as much as is reasonable in the type system and encouraging the programmer to think about all possible cases. The first gets all the attention because it is the one you can make guarantees about, but the second is really just as important. |
|