On 2012-08-14 15:47, Michael Dürig wrote:
... An even better way to handle this is to return an Option<T>. Guava has something along these lines [1]. Unfortunately Guava's version of Option is not a monad which makes it not as useful as it could be. ...
It looks cool first, but I'm totally unconvinced that replacing null checks by "isPresent()" checks really makes things better.
Best regards, Julian
