Re: Unclear behavior of dictionary member default values

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