||= is much needed?

Wes Garland wes at page.ca
Mon Jun 18 03:58:26 PDT 2012


> Yes, we could make ?? and ??= do the same for null as for undefined. I'm
not sure that's
> the right choice, but it's a choice.

Introducing yet another way to think about values in ES is not going to
help most programmers.  We already have to think about thinks like
undefined and falsey -- what's been proposed here is an operator that
mysterious works on something halfway between the two.

Some folks may not see the need to differentiate between the two, but as
somebody who talks to databases with ES -- there is a world of difference
between null and undefined.

Wes

-- 
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120618/f0b4a5dd/attachment.html>


More information about the es-discuss mailing list