Meta-issue for discussion of the proposal to allow generic constructors #30355
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
language-discussion
Uh oh!
There was an error while loading. Please reload this page.
This issue is to provide a forum for community discussion and feedback related to the proposal to allow constructors for classes to take additional generic arguments independent of the generic arguments of their class.
Currently strong mode allows generic functions and methods with a syntax like
int foo<T>(List <T> l) ...
, but constructors are not generic - they can only get the type parameters of the class.An example case could be
List.mapped<S>(Iterable<S> source, E map(S value)) ...
where the type of the source doesn't depend on the type of the created listList<E>
.This entry will be updated when a proposal is available.
cc @munificent @eernstg @floitschG @lrhn
The text was updated successfully, but these errors were encountered: