Existential Operator / Null Propagation Operator

Claude Pache claude.pache at gmail.com
Thu Oct 29 21:20:09 UTC 2015


> Le 29 oct. 2015 à 19:32, Eli Perelman <eli at eliperelman.com> a écrit :
> 
> 2 dots may be problematic when parsing numbers (yeah, I know it's probably not common, but it's still valid):
> 
> 3..toString()
> 
> Eli Perelman

Treating `..` as one token would be a breaking change, but I don't think it is a problem in practice, as `3..toString()` would continue to work. In some cases – as in `3..toStrign()` –, `undefined` will be produced where an error was thrown.

—Claude



More information about the es-discuss mailing list