map and null values

Boaz Nahum boaznahum at gmail.com
Fri Jan 4 02:38:49 PST 2013


Null values in maps are usful. Without them you force me to wrap them.
I think null keys are meaningless.

Boaz

On Jan 4, 2013 5:16 AM, "Sam Pullara" <sam at sampullara.com> wrote:
>
> I agree. Walk away from null keys + values and don't look back.
>
> Sam
>
> On Thu, Jan 3, 2013 at 7:09 PM, Jed Wesley-Smith <jed at wesleysmith.io>
wrote:
>
> > It should fairly clear by now that the decision to allow a null key
> > and null values in the Map interface was a mistake and should not be
> > continued. Null-intolerance – particularly now there is an Optional
> > class that solves partiality properly – is not only ok but should be
> > the default, promoted position.
> >
> > Concurrency simply makes the overloading of null to mean something and
> > nothing more obviously absurd.
> >
> > If we can agree that nulls should essentially be deprecated as a legal
> > value or key then we avoid all the complicated gymnastics this thread
> > shows are necessary to support them.
> >
> > cheers,
> > jed.
> >
> >
>


More information about the lambda-dev mailing list