Otherwise you'd only be able to detect 'missing' objects by exceptions being thrown.
Otherwise you'd only be able to detect 'missing' objects by exceptions being thrown.
The right solution, to my mind, would be to have function parameters be non-nullable by default. Unfortunately it is too late in the history of Java to switch to that behavior now. Too much code would break. So I would settle for being able to declare individual function parameters non-nullable as a standard part of the language.
I can't believe it would be all that hard to implement.
Most important part of that section:
> If our community wants to remove implicit nulls from industry, where appropriate, our community should make greater effort to appreciate the complex compromises that have to be made in practice so that our work can successful transfer out of academia.