dep-generic-methods icon indicating copy to clipboard operation
dep-generic-methods copied to clipboard

Dart Enhancement Proposal for generic methods

Results 6 dep-generic-methods issues
Sort by recently updated
recently updated
newest added

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...