Function.length and Default Parameters
waldron.rick at gmail.com
Fri Oct 12 06:23:59 PDT 2012
On Friday, October 12, 2012 at 9:18 AM, Kevin Smith wrote:
> > This looks like the sort of thing that will get labeled "uselessly unreliable", then again I was in favor of making length equal the number of formal parameters—rest included.
> Right - the simpler the rule, the better for this kind of thing. I wouldn't include rest, though, because it's "cardinality" is really infinity, and therefore not particularly useful in this context.
Sorry, should've clarified: that was my initial inclination, some time ago. Yes I agree with "everything but the rest".
> But the simplest rule would require a change to the reported length of some built-ins, as Allen has said. Tradeoffs...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss