Dart generics variance


Topic history | v1 (current) | created by jjones

Details

Dart generics variance

| created by jjones | Add topic "Dart generics variance"
Title
Dart generics variance
Description
Covariant generics fit a common intuition that programmers have, and very often this intuition is correct, such as in the common “read-only” use of a generic. Although this intuition isn’t always correct, Dart is erring on the side of convenience by having covariant generics.
Link
https://dart.dev/faq#q-why-are-generics-covariant

resources

treated in Dart declaration-site variance
v1 | attached by jjones | Add topic "Dart generics variance"

authors

This topic has no history of related authors.

topics

subtopic of Dart
v1 | attached by jjones | Add topic "Dart generics variance"