Function.length and Default Parameters

Erik Arvidsson erik.arvidsson at
Fri Oct 12 06:53:24 PDT 2012

On Fri, Oct 12, 2012 at 9:23 AM, Rick Waldron <waldron.rick at> wrote:
> Right - the simpler the rule, the better for this kind of thing.

Anything but optional and rest (as speced) is the simplest rule I can
think of, except everything including rest, but no one wants that.

The problem is that length is not useful for reflection anyway. The
right way forward is to provide a better reflection API that exposes
all the relevant information about the parameters.


More information about the es-discuss mailing list