News for hackers. Stuff that matters.
Re:Java 8’s new Optional type doesn't solve anything by eweise on Monday October 26, 2015 @11:25AM (#10452029)
I agree. Having programmed in java for the past 15 years, I can attest that NullPointerExceptions are a constant source of errors. The main benefit I've experienced with Optional is that it documents the fact that a method might return a null value. Without this, the client has to guess whether or not to add defensive null checks.
Re:Java 8’s new Optional type doesn't solve anything by plonh on Tuesday October 27, 2015 @12:11AM (#10456275)
@Nullable already does that.