es-discuss Digest, Vol 46, Issue 22
Brendan Eich
brendan at mozilla.com
Thu Dec 23 12:44:28 PST 2010
On Dec 23, 2010, at 11:59 AM, Dmitry A. Soshnikov wrote:
> On 23.12.2010 22:39, Brendan Eich wrote:
>>
>> The .. is wanted by other extensions, and already used by ECMA-357 (E4X), FWIW.
>>
>
> JFTR: and also in ECMA-262:
>
> 1..toString()
Yes, although if we added any .. as in Ruby or CoffeeScript it would, by the maximal munch principle, be tokenized instead of two dots. This is not a backward-compatible change as you note, but it's not a huge break either. It's rare to call methods on integer literals and one can always parenthesize.
/be
More information about the es-discuss
mailing list