2 ms·
If a variable is a null, you can assume that it should be null - but what if it became null as an error? We can put in a special code to check that, of course,
by golergka 10y ago
If a variable is a null, you can assume that it should be null - but what if it became null as an error? We can put in a special code to check that, of course, and put in more branching in already complicated codebase.
Or we could admit that these two objects wasting space are quite an acceptable price to pay, relative to the scale of the system and of the price of adding additional logic to it, which always equals instability and defects.