[Bug 16725] Treat omitted dictionary the same as empty dictionary

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16725

--- Comment #12 from Cameron McCormack <cam@mcc.id.au> ---
(In reply to Olli Pettay from comment #11)
> I don't understand this.
> Now you can't have a method which requires caller to pass some dictionary.
> Or you can, but you need to add some artificial non-optional non-dictionary
> param after the dictionary.

That was by design.  Given the way that dictionaries are used, it seemed like a
good idea to require them to be optional so that authors could always omit it. 
Do you need to have the dictionary argument be non-optional because otherwise
it would e.g. interact with the rules for overloading, and you wouldn't be able
to write the API you want?  Or do you disagree with encouraging this kind of
API pattern?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 23 October 2013 05:32:44 UTC