Re:Java 8’s new Optional type doesn't solve anything
by the_af on Monday October 26, 2015 @11:39AM
(#10452115)
No, the author considers it ineffective because you are not forced to think about nulls at compile time. Of course, at run time they will explode in your face, so you still have to consider them eventually.
@jontro is saying that proper Optionals make it impossible (or at least, more difficult) to forget about the problem at compile time.
@jontro is saying that proper Optionals make it impossible (or at least, more difficult) to forget about the problem at compile time.