Existential Operator / Null Propagation Operator

Nick Krempel ndkrempel at google.com
Wed Apr 8 11:50:13 UTC 2015


On 7 April 2015 at 18:33, Christoph Pojer <christoph.pojer at gmail.com> wrote:

> it doesn't have to be a bug. It asserts that if a is not
> null/undefined, it must have a property b. This can be enforced
> through static typing.


Under option 1, that's not what it does. Since it's equivalent to
`(a?.b).c`, if a is null/undefined, it will always raise an error, so it's
more or less the same as just doing `a.b.c`.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150408/d0465722/attachment-0001.html>


More information about the es-discuss mailing list