RFR : JDK-8001642 : Add Optional<T>, OptionalDouble, OptionalInt, OptionalLong
Remi Forax
forax at univ-mlv.fr
Fri Apr 26 02:22:07 PDT 2013
On 03/28/2013 07:23 PM, Kevin Bourrillion wrote:
> I do NOT wish to restart this discussion; I just noticed a falsehood
> that was never exposed:
What I should have written is that Guava unlike the JDK allows to create
an Optional from null,
the fact that it stores null or not is an implementation detail.
Rémi
>
>
> On Wed, Mar 6, 2013 at 1:47 AM, Remi Forax <forax at univ-mlv.fr
> <mailto:forax at univ-mlv.fr>> wrote:
>
> Google's Guava, which is a popular library, defines a class named
> Optional, but allow to store null unlike the current proposed
> implementation, this will generate a lot of confusions and
> frustrations.
>
>
> Guava's Optional /cannot/ be used to hold null. So this particular
> concern is not a concern at all.
>
>
> --
> Kevin Bourrillion | Java Librarian | Google, Inc. |kevinb at google.com
> <mailto:kevinb at google.com>
More information about the lambda-libs-spec-experts
mailing list