Re: Optional method arguments in the DOM

On Fri, 23 Jun 2006 16:50:52 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> Now there are several obvious modifications to this system that could be  
> made:
>
> [...]

How about having specified in the IDL which parameters default to certain  
value when omitted? So both the parameter being omitted is specified and  
it's value to be assumed by the UA is.

   void() test(foo, [bar] null)

Would be a way to do it I guess. (I don't really like the syntax though...)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Thursday, 29 June 2006 19:51:03 UTC