contravariance
English
Etymology
Noun
contravariance (countable and uncountable, plural contravariances)
- (object-oriented programming) The reversal of the order of data types acted upon by an operator.
- Coordinate term: covariance
- 2005, Jesse Liberty, Visual C# 2005: A Developer's Notebook, "O'Reilly Media, Inc." (→ISBN), page 47:
- I get why with covariance I can return a Dog (a Dog is a Mammal), but why does contravariance work the other way? Shouldn't it accept a derived type when it expects a base type? Contravariance is consistent with Postel's Law: […]
- (category theory) A functor which reverses composition.
Related terms
Translations
reversal of the order of data types acted upon by an operator
|
functor which reverses composition
|
Further reading
French
Noun
contravariance f (plural contravariances)
Further reading
- “contravariance”, in Trésor de la langue française informatisé [Digitized Treasury of the French Language], 2012.