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)
"2a"
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.
/be
[1]
http://s3.amazonaws.com/data.tumblr.com/tumblr_m1vp6tzTbn1rrf1eeo1_1280.png?AWSAccessKeyId=AKIAI6WLSGT7Y3ET7ADQ&Expires=1334078546&Signature=bbDSaQg103LvcupBfxWSQel%2Fcps%3D
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss