Rest parameter syntax

Allen Wirfs-Brock allen at wirfs-brock.com
Tue Jun 12 09:15:13 PDT 2012


On Jun 12, 2012, at 8:49 AM, Herby Vojčík wrote:

> 
> ...
> 
> BTW, isn't this possible with comprehensions in parameter list:
> 
> db.run = function (query, ...[...params, cb]) { /* body */ }
> 
> If yes, problem solved.

Current draft requires an identifier after ... in a rest position

Allen


More information about the es-discuss mailing list