We get a benefit if the runtime says we have insufficient number of args, but having too many is not an issue and only gets in the way. Can we change that?
I would take this a step further and say that (as in JavaScript) when a function (or method) is called with extra positional or named arguments, then instead of calling noSuchMethod on the function or method receiver), just ignore the extra arguments. There of course should still be a static warning for this.
...
The big use case for this is registering callbacks which will be passed arguments which you don't care about, and thus do not want to include in the formal parameters of your callback.
i think we can use c style (a,...) to ignore it.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
i think we can use c style (a,...) to ignore it.
--