Should ... be suffix rather than prefix?
herby at mailbox.sk
Tue Apr 10 03:19:18 PDT 2012
Andreas Rossberg wrote:
> On 3 April 2012 22:16, Mark S. Miller <erights at google.com
> <mailto: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 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
"... (the rest)"
Which sort-of convinced me that prefix is the right one.
> form exists in English syntactically, but with a different meaning.)
More information about the es-discuss