rest parameters

Michaël Rouges michael.rouges at gmail.com
Fri Oct 2 18:52:27 UTC 2015


Hi all,

I'm coming to you for a tiny question... excuse me if already replied...

Where the rest parameter are only declarable at the end of the arguments
list, like this, please?

`
void function (a, ...b, c) {
    // b = [2, 3]
}(1, 2, 3, 4);

`

Any real reasons?


Michaël Rouges - https://github.com/Lcfvs - @Lcfvs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151002/6858ac14/attachment.html>


More information about the es-discuss mailing list