I was looking through some code and noted some styles encourage the last argument to be significant (optional parameters and callbacks after them for example). Is there a reason function foo(a,...b,c) would not be feasible? >From a grammar perspective, as long as only one rest parameter exists in an argument list I don't see this as being an issue for execution, just a slightly altered parser.
FormalParameterList : ... Identifier FormalParameterListNoRest FormalParameterListNoRest , ... Identifier , FormalParameterListNoRest FormalParameterListNoRest , ... Identifier FormalParameterListNoRest : Identifier FormalParameterListNoRest , Identifier _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

