dart-lang / dart-lang/language
Support method/function overloads
Open
request
- Dominant language
- TeX
- Stars
- 2.9k
- Forks
- 239
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 14
Description
This has been discussed periodically both in the issue tracker and in person, but I don't think there's a tracking issue yet. (**EDIT**: Here is the original issue from 2011 - https://github.com/dart-lang/sdk/issues/49).
Now that we're moving to a sound type system, we have the ability to overload methods—that is, to choose which of a set of methods is called based on which arguments are passed and what their types are. This is particularly useful when the type signature of a method varies based on which arguments are or are not supplied.
Contributor guide
Assessment
This issue has not been assessed yet.