Objects.firstNonNull
Michael Nascimento
misterm at gmail.com
Wed Mar 20 12:12:43 PDT 2013
I hope this is my last answer, since it seems it is not happening...
On Wed, Mar 20, 2013 at 4:04 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
> My point was: with 10M Java developers, there are likely to be millions of
> commonly used idioms. Should we put them all in the JDK?
Of course not. But Guava is not a generic bunch of methods put
together, but rather a select choice of useful ones. It is one of the
very few in Objects there that didn't make it into Objects here.
> And if we did, could users find any of them?
Every Guava user would. :-)
> The bar needs to be higher than "I've found it useful."
The Guava team found it useful after analyzing several code bases.
> We're far better off putting our energy into doing things that users can't
> do themselves in two lines, like supporting parallel map-reduce on
> non-thread-safe ArrayList.
Fair enough.
Regards,
Michael
More information about the lambda-dev
mailing list