Re: Unclear behavior of dictionary member default values

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