HomeServicesBlogDictionariesContactSpanish Course
← Back to search

Meaning of contravariance | Babel Free

Noun CEFR C2

Definitions

  1. The reversal of the order of data types acted upon by an operator.
  2. A functor which reverses composition.
  3. Of vectors, the property of scaling inversely with a change of basis, as opposed to covariance.

Equivalents

Examples

“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: […]”

CEFR level

C2
Mastery
This word is part of the CEFR C2 vocabulary — mastery level.
See all C2 English words →

See also

Learn this word in context

See contravariance used in real conversations inside our free language course.

Start Free Course

Know this word better than we do? Language is a living thing — help us keep it growing. Collaborate with Babel Free