ericelliott/rtype

declaration-site variance annotations of generic type arguments

Open

#81 opened on Apr 14, 2016

View on GitHub
 (6 comments) (0 reactions) (0 assignees)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)

Contributor guide