ericelliott/rtype

declaration-site variance annotations of generic type arguments

Open

#81 aperta il 14 apr 2016

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)JavaScript (46 fork)batch import
help wantedstrawman

Metriche repository

Star
 (1128 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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)

Guida contributor