W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2011

Re: [WebIDL] add text to discourage `[Optional] Interface / [NoInterfaceObject] interface Interface` and encourage `dictionary Dictionary` instead

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Tue, 30 Aug 2011 19:02:44 +0300
Message-ID: <4E5D09A4.1010308@helsinki.fi>
To: timeless <timeless@gmail.com>
CC: public-script-coord@w3.org
On 08/29/2011 08:06 PM, timeless wrote:
> I recently saw a snippet of Web IDL code that goes like this:
>    function A(Foo foo, [Optional] Bar bar);
>
>    [NoInterfaceObject] interface Bar
>      { ... };
>
> In response to this, I'd like Web IDL to include some text to the effect of:
>
>      You SHOULD use `dictionary Foo` instead of `[NoInterfaceObject]
> interface Foo` if Foo is intended for use as an argument, especially
> an [Optional] argument.
>
>


Why? I don't see any reason for this change.


-Olli
Received on Tuesday, 30 August 2011 16:03:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:04 UTC