3 ms·
> In Rust, as well as GC'd languages like TypeScript, dereferencing a null reference is possible, in the same sense, because a type cast or unsafe code may have
by Filligree 7y ago
> In Rust, as well as GC'd languages like TypeScript, dereferencing a null reference is possible, in the same sense, because a type cast or unsafe code may have been incorrect.
True, but type casts are unsafe code. You'll never see a null pointer so long as you stick to the safe language subset.