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 (1 128 stars) (46 forks)batch import
help wantedstrawman

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