Re: [WebIDL] Handling undefined in Overload Resolution Algorithm

On Aug 4, 2011, at 4:40 PM, Jonas Sicking <jonas@sicking.cc> wrote:
> The question comes down to this: Is it more "javascripty" to look at
>>>> 
>>> 
>> 
>> 
>> 
> the actual argument count (in JS terms, check arguments.length), or is
> it more "javascripty" to look at which arguments have the value
> <undefined>.

It depends. It is *not* "JavaScripty" to pass "undefined" (the string) to a function expecting a string actual that has optional parameters including the one for which no actual undefined was passed but a default value of undefined was passed.

/be
> 

Received on Saturday, 6 August 2011 01:27:48 UTC