W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

Re: Handling too few arguments in method calls

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 26 Jun 2009 11:13:38 +1000
To: Darin Adler <darin@apple.com>
Cc: public-webapps@w3.org
Message-ID: <20090626011338.GD8712@arc.mcc.id.au>
Darin Adler:
> What about too many arguments, and ignoring extra ones? Is that
> settled?

It seems consistent with current implementations to ignore extra
arguments.  That approach might go against the desire to maximise the
freedom API designers have to add additional overloaded operations
later, though.  If we had

  interface A {
    void f();

and for whatever reason authors sometimes called it with an argument,
then it might make it harder to update the interface to

  interface A {
    void f();
    void f(in float x);

later on.  I have no idea how common it is for authors to pass too many
arguments to web APIs.

Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 26 June 2009 01:14:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:12:54 UTC