Should ... be suffix rather than prefix?
erik.arvidsson at gmail.com
Tue Apr 3 14:32:45 PDT 2012
FWIW, Python and Ruby uses prefix (the * operator). Java and C++11
uses prefix ... (actually suffix on the type).
My vote is for prefix.
On Tue, Apr 3, 2012 at 14:08, Russell Leggett <russell.leggett at gmail.com> wrote:
> In fact, I think I've even written a few code examples accidentally using
> that form because it was just more natural.
> On Tue, Apr 3, 2012 at 4:16 PM, Mark S. Miller <erights at google.com> wrote:
>> foo(a, b, ...rest)
>> foo(a, b, rest...)
>> Which is clearer?
>> ES6 has currently agreed on the first. English and Scheme agree on the
>> This question applies to both
>> <http://wiki.ecmascript.org/doku.php?id=harmony:rest_parameters> and
>> es-discuss mailing list
>> es-discuss at mozilla.org
> es-discuss mailing list
> es-discuss at mozilla.org
More information about the es-discuss