Should ... be suffix rather than prefix?

Kyle Murray 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;-)
>
> Claus
>
>
> ______________________________**_________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120407/c0d98869/attachment-0001.html>


More information about the es-discuss mailing list