Should ... be suffix rather than prefix?
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)
> 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
ES6 has currently agreed on the first. English and Scheme agree on the
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.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss