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.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to