Existential Operator / Null Propagation Operator

Ron Waldon jokeyrhyme at gmail.com
Thu Sep 15 23:55:28 UTC 2016


Once upon a time, there was a fascinating proposal on this subject:
- https://github.com/sebmarkbage/ecmascript-undefined-propagation

Rather than introduce new syntax, Sebastian's proposal was to automatically
propagate `undefined` values: if we're about to throw a
dot-property-access-on-undefined error, we just return `undefined` instead.

I could find much discussion about this here, but I did find lots of
discussions about approaches involving alternative syntax.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160915/da5ba03e/attachment-0004.html>


More information about the es-discuss mailing list