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

Re: Unclear behavior of dictionary member default values

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 8 Jun 2012 22:31:39 +0200
Message-ID: <CADnb78jyaUhwf458tF7yjjjGOyb029vE5WpLPQKVihTGjT1Niw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-script-coord@w3.org
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(), but should work for all the
newer ones. And would probably also work more generally.


-- 
Anne — Opera Software
http://annevankesteren.nl/
http://www.opera.com/
Received on Friday, 8 June 2012 20:32:08 UTC

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