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

Repository metrics

Stars
 (1,128 stars)
PR merge metrics
 (No merged PRs in 30d)

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