jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: hasProperty vs getProperty
Date Wed, 15 Aug 2012 04:31:31 GMT
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

Mime
View raw message