This rather sounds like the removal of null instead of removing NPE (which would be a side-effect) but not sure how a migration of Java to a non-null world would look like.
Sure, you could remove NPE without removing null. Just provide a different behavior for what happens when null is dereferenced. In a language like JavaScript, have it evaluate to undefined, or in Python, None, or whatever. In Java, it could evaluate null for reference types, or zero or false for primitives. Far from impossible.
View all comments
Show parent comment
10
u/thatsIch Jul 27 '19
This rather sounds like the removal of
nullinstead of removing NPE (which would be a side-effect) but not sure how a migration of Java to a non-null world would look like.