ericelliott/rtype

declaration-site variance annotations of generic type arguments

Open

#81 ouverte le 14 avr. 2016

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)JavaScript (46 forks)batch import
help wantedstrawman

Métriques du dépôt

Stars
 (1 128 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Declaration-site variance annotations in other languages

C#, Kotlin, Ceylon:

  • out covariance
  • in contravariance

Scala, OCaml, Flow:

  • + covariance
  • - contravariance

What should we choose? (see discussion about generic types in #55 and #80)

Guide contributeur