Existential Operator / Null Propagation Operator
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...
More information about the es-discuss