Re: Reconciling handling of optional arguments and handling of default values across ES and webidl

On 9/26/13 5:15 AM, Cameron McCormack wrote:
> Yes.  Since arg2 must be specified, I think it makes more sense to have
> length be 2 rather than 0.  WDYT?

Makes sense to me.

> If you have
>
>    void f(long x, long y);
>    void f(long x, optional Node n);
>
> and you call
>
>    f(0, undefined);
...
> Step 10.2 looks at the undefined value that was passed in, matches it
> against the optional Node argument of f_2, and so selects that overload.

I see.  OK.  I guess that makes sense.

-Boris

Received on Friday, 27 September 2013 05:22:30 UTC