Should ... be suffix rather than prefix?
krilnon-es at reclipse.net
Sat Apr 7 14:32:30 PDT 2012
Two dots are (in some contexts) the descendant access operator in E4X, so
that might have had something to do with the decision.
On Wed, Apr 4, 2012 at 4:32 PM, Claus Reinke <claus.reinke at talk21.com>wrote:
> Btw, why three dots? I always find myself writing two dots..
>> Presumably because three dots make an ellipsis, which has roughly the
>> meaning we're aiming for here.
> True, and I admit to omitting that third dot in natural language
> as well. But in the context of JS, if I think of ... as the anonymous
> ellipsis (just leaving something out, no variable binding), then ..var
> seems natural for the not-quite ellipsis that binds a variable, and ...var
> feels too long (and too much like natural language ellipsis, which would
> have no association with the word before or after).
> I'll probably manage to adjust once ES6 implementations are
> more common, but I thought I'd mention it;-)
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss