Nulls
Kevin Bourrillion
kevinb at google.com
Fri Sep 21 08:37:21 PDT 2012
On Fri, Sep 21, 2012 at 5:49 AM, Remi Forax <forax at univ-mlv.fr> wrote:
Support them is the only realistic option, there are too many codes out
> there that put null in collections, otherwise it will seriously impede the
> adoption of lambdas.
>
You would think so, but take a look at how hard Guava is on nulls, and we
pretty much get away with it.
There are always plenty of strategies for fixing your code to not need to
put nulls into collections, and most of them leave the code better off.
I'm not taking a position on the issue, just saying the argument that we *
have* to support nulls doesn't hold water with me. So *what* if it "impedes
adoption" of lambdas a bit? Pleasing everyone all of the time isn't an
option anyway.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20120921/6898ae90/attachment.html
More information about the lambda-libs-spec-experts
mailing list