Name syntax

David-Sarah Hopwood david-sarah at
Thu Dec 23 13:07:26 PST 2010

On 2010-12-23 20:44, Brendan Eich wrote:
> 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.

You'd actually have to also change the StrUnsignedDecimalLiteral production,
since that "munches" the first dot before the '..' is tokenized.
Anyway, the use of '..' in E4X and as a range operator in other languages is
sufficient reason not to use it here.

David-Sarah Hopwood  ⚥

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 292 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the es-discuss mailing list