JSIL and embind both need arguments.length for efficient method call
dispatch when dealing with overloaded functions. Is it your intent that all
such scenarios must now pay the cost of creating an array (to hold the rest
arguments) and then destructuring it, for every call? At present it's
possible to avoid this overhead in V8 and SpiderMonkey by using
arguments.length + arguments[n] or by using arguments.length + patterned
argument names.


On Sun, Nov 10, 2013 at 1:24 PM, David Bruant <[email protected]> wrote:

> Le 10/11/2013 22:19, Brendan Eich a écrit :
>
>  On Nov 10, 2013, at 9:12 PM, Andrea Giammarchi <
>>> [email protected]> wrote:
>>>
>>> Not sure why this is so needed though.
>>>
>> Allen's posts make the case: webidl and varargs-style functions. Not all
>> legacy.
>>
> WebIDL creates spec, not code. The language syntax doesn't need to evolve
> for that. Allen showed that rest params+destructuring allows self-hosting
> without |arguments|
> Varargs functions have rest parameters.
>
> David
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to