Existential Operator / Null Propagation Operator

Oriol Bugzilla oriol-bugzilla at hotmail.com
Fri Sep 16 00:33:05 UTC 2016

I disagree with silently ignoring property access on null/undefined.

> Early errors are nice

Yes, exactly. Errors should fail early and loudly. That's why the strictness of strict mode is useful.

> It's no weirder that `123.foo` not throwing.

No, it's entirely different, because numbers are object-coercible.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160916/1f132d4a/attachment.html>

More information about the es-discuss mailing list