Re: [heycam/webidl] Allow overload resolution to "round down"? (#581)

I think mostly this was around avoiding complexity and doing something sane for "obviously invalid" calls that don't match any overload.

The obvious thing to try to tweak is to remove all entries whose length is not argcount except the "maximal" ones of length less than argcount.  That is, given:

  void foo();
  void foo(long arg);
  void foo(long arg1, long arg2, long arg3);

and a call with two arguments, we would presumably want to remove all but the second overload?  Or would we want to leave the first and second overload?  If so, how would we choose between them?

That is, given that we've got an "invalid" call, how do we go about guessing what the author meant?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/581#issuecomment-453154507

Received on Thursday, 10 January 2019 16:16:06 UTC