Re: Handling too few arguments in method calls

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