Should ... be suffix rather than prefix?

Andreas Rossberg rossberg at google.com
Tue Apr 10 03:16:20 PDT 2012


On 3 April 2012 22:16, Mark S. Miller <erights at google.com> wrote:

>     foo(a, b, ...rest)
>
> vs
>
>     foo(a, b, rest...)
>
> Which is clearer?


First, because it is much more apparent that 'rest' is a different beast
than the other parameters. The second form "looks" natural but in a rather
misleading way.


ES6 has currently agreed on the first. English and Scheme agree on the
> second.
>

There seems to be sufficient precedent in PLs either way. But what would be
the equivalent to this construct in the English language? (The second form
exists in English syntactically, but with a different meaning.)

/Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120410/7186c439/attachment-0001.html>


More information about the es-discuss mailing list