Should ... be suffix rather than prefix?

Jorge jorge at jorgechamorro.com
Tue Apr 3 14:36:07 PDT 2012


On Apr 3, 2012, at 10:16 PM, Mark S. Miller wrote:

>     foo(a, b, ...rest)
> 
> vs
> 
>     foo(a, b, rest...)
> 
> Which is clearer?
> 
> ES6 has currently agreed on the first. English and Scheme agree on the second.

The second, of course. As in C: the ellipsis always ends the parameters list.
-- 
Jorge.


More information about the es-discuss mailing list