4 ms·
> If it was in Rust and someone used an unwrap() but there was no value, panic would DoS the system in much the same way, right? A big difference is that the d
by masklinn 12y ago
> If it was in Rust and someone used an unwrap() but there was no value, panic would DoS the system in much the same way, right?
A big difference is that the developer would have made the explicit choice at that point to dereference a pointer know to possibly be null. There's no implicit null (and having to wonder "by hand" for each pointer whether or not it could be null, with the risk that changes in any previous operation make make non-nullable pointers nullable without warning).
> Same for Java, or C#, or what have you
Java and C# also use implicit pervasive nullability, and at least deref'ing a null pointer there is a defined behavior.