Existential Operator / Null Propagation Operator
oriol-bugzilla at hotmail.com
Sat Oct 1 05:31:31 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...
More information about the es-discuss