Re: [Future] First arguments should not be optional

On 5/8/13 6:39 PM, Cameron McCormack wrote:
> Yes.  You should be able to write
>
>    Future catch(optional AnyCallback rejectCallback);
>
> and have that cause
>
>    new Future().catch(undefined)
>
> to mean the same as
>
>    new Future().catch()
>
> while
>
>    new Future().catch(null)

You can already do that in WebIDL:

   Future catch([TreatUndefinedAs=Missing] optional AnyCallback 
rejectCallback);

no?

-Boris

Received on Wednesday, 8 May 2013 22:52:48 UTC