ericelliott/rtype

declaration-site variance annotations of generic type arguments

Open

#81 建立於 2016年4月14日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)JavaScript (46 fork)batch import
help wantedstrawman

倉庫指標

Star
 (1,128 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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)

貢獻者指南