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

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

From: timeless <timeless@gmail.com>
Date: Mon, 29 Aug 2011 13:06:52 -0400
Message-ID: <CAACrNNciwBW3X6BqnaWBtLoLPMpAEZeVeQ-EOrtyYD7tYKzoZw@mail.gmail.com>
To: public-script-coord@w3.org
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.
Received on Monday, 29 August 2011 17:07:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:04 UTC