Should ... be suffix rather than prefix?

Brendan Eich brendan at
Mon Apr 9 10:24:55 PDT 2012

Kyle Murray wrote:
> Two dots are (in some contexts) the descendant access operator in E4X, 
> so that might have had something to do with the decision.

Even in plain JS without E4X [1], two dots are one way to access 
prototype methods of a floating point literal:

js> 42..toString(16)

and even if unambiguous formally, some readers will find novel uses of 
.. to be a speedbump. Three to be sure.

In this light, prefix over suffix also wins.



More information about the es-discuss mailing list