||= is much needed?
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...
More information about the es-discuss