Adding to that, I rarely encounter NullPointerException
s, and when I do it’s discovered very early in testing and is easily fixed (just Option(nullableExpression)
).
Speaking of testing, I wonder how this affects mocking frameworks such as Mockito, which heavily rely on null
s for both implementation and semantics.