3 ms·
But expanded null checks could be automated by the compiler if so desired right? Without having to change the nature of null into an optional. @MAYBE if(a.getS
by seanalltogether 8y ago
But expanded null checks could be automated by the compiler if so desired right? Without having to change the nature of null into an optional.
@MAYBE
if(a.getStuff().getValue() == "TEST")
- lmm 8y agoYou could check every value for null, sure. But a) why would you want to? (and wouldn't it be bad for performance) and b) how would you handle it? Knowing that a value somewhere in your program was null doesn't really help you any.