W3C home > Mailing lists > Public > public-webapi@w3.org > June 2006

Re: Optional method arguments in the DOM

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 29 Jun 2006 21:50:19 +0200
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>, "DOM mailing list" <www-dom@w3.org>
Message-ID: <op.tbwvxtzg64w2qv@id-c0020.oslo.opera.com>

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
Received on Thursday, 29 June 2006 19:51:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC