||= is much needed?

John Tamplin jat at google.com
Fri Jun 15 15:13:03 PDT 2012

On Fri, Jun 15, 2012 at 6:00 PM, Brendan Eich <brendan at mozilla.com> wrote:

> Can you give a real-world example where null rather than undefined is
> soaked up? I'm guessing DOM but guessing is bad (cf. Sherlock Holmes).

Wouldn't any case where you return null to mean explicitly no object be
such a case?  Ie:

var bar = lookupFoo(key)?.bar();

John A. Tamplin
Software Engineer (GWT), Google
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120615/2487c7e6/attachment.html>

More information about the es-discuss mailing list