7 ms·
You are correct. The feature request for adding type-based overloaded function was denied: https://github.com/dart-lang/sdk/issues/49#issuecomment-108301493 htt
by _1 10y ago
You are correct. The feature request for adding type-based overloaded function was denied: https://github.com/dart-lang/sdk/issues/49#issuecomment-108301493 https://github.com/dart-lang/sdk/issues/49#issuecomment-1083...
> If you need a different variant of a method, create a method with a different name. ... type-based overloading is a bad idea, creating brittleness and ambiguity.
- afsina 10y agoHow about this? They might have changed their minds.. https://github.com/dart-lang/sdk/issues/26488 https://github.com/dart-lang/sdk/issues/26488
- munificent 10y agoYes, overloading is back on the table. All of the cons with it are still there—it really is a hairy feature—but the pros are real too and might be worth doing. We still haven't figured out whether or not we will and, if so, what the exact semantics will be.