Skip to content

Type Variance #56

@jeremieSimon

Description

@jeremieSimon

I would like to add a bit more details about the variance in the category "Type and Generics".
Specifically, a rule of thumb for when to use invariance, covariance and contravariance.
I think that the explanation provided for covariance and invariance is great but this section is missing an explanation on contravariance. I would like to contribute to this section and explain how and when to use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions