dep-generic-methods
dep-generic-methods copied to clipboard
Dart Enhancement Proposal for generic methods
The proposal should clarify / make explicit how tear-offs will be treated. Maybe a separate section covering tear-offs of generic functions would be appropriate. --- Examples of the questions to...
### Executive summary Dart currently has support for generic function type (GFT) **_aliases_** via `typedef`s. Hence some statements in the proposal might not be quite accurate: e.g., - Lack of...
The subtyping relation between generic functions require them to have the same number of generic parameters. For classes that is not always the case. For example: ``` dart class IdentityTranform...
The proposal omits the corresponding changes to dart:mirrors. Presumably this would be something like adding MethodMirror.typeVariables.
> As a consequence of this, code such as g(x < y, z > (3 + 4)) which currently parses as an application of g to two arguments will be...