W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: Unclear behavior of dictionary member default values

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 8 Jun 2012 15:32:17 -0700
Message-ID: <CA+c2ei-090ZM4RAHbAU_OVX_R++Py3osnyw5oZMj1ZNymNozcA@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, public-script-coord@w3.org
On Fri, Jun 8, 2012 at 1:31 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Fri, Jun 8, 2012 at 4:05 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> Are there use cases for having an API where passing an empty dictionary and
>> not passing a dictionary at all have different behavior?  If not, it might
>> be nice if WebIDL just handled this so you could actually usefully declare
>> the whole thing in IDL instead of having to do it in prose...
>
> Yeah maybe. That would not work for the event interfaces that can be
> instantiated with document.createEvent().

Why not?

Worst case we can always use prose to make an exception here.

/ Jonas
Received on Friday, 8 June 2012 22:39:56 UTC

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