2 ms·
The problem with null references is you have to write those conditional statements everywhere, otherwise your program might crash. You generally know as the pro
by josephg 4y ago
The problem with null references is you have to write those conditional statements everywhere, otherwise your program might crash. You generally know as the programmer which pointers you expect to be nullable and which should always be an object. But the compiler has no idea, so it can’t help make sure you have null checks in all the places you need them.
- GoblinSlayer 4y agoAnd what to do if null check fails? Call abort()?