ericelliott/rtype

declaration-site variance annotations of generic type arguments

Aperta

#81 aperta il 14 apr 2016

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

Metriche repository

Star
 (1128 stelle)
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