Should ... be suffix rather than prefix?

Mark S. Miller erights at google.com
Tue Apr 3 13:16:31 PDT 2012


    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.

This question applies to both <
http://wiki.ecmascript.org/doku.php?id=harmony:rest_parameters> and <
http://wiki.ecmascript.org/doku.php?id=harmony:spread>.

-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120403/45b08348/attachment.html>


More information about the es-discuss mailing list