User loginNavigation 
(newbie question) Covariance and contravarianceFirstly I don't have any theoretical background in Category Theory. My goal is just trying to understand the following: On wikipedia, A covariant type operator in a type system preserves the ordering â‰¤ of types. A contravariant operator reverses â‰¤. If neither of these apply, the operator is invariant. These terms come from category theory. What is type operator referring to in the context say Java ? The array type is usually covariant on the base type. Would I be right to say that the type operator is the assignment operator ? String[] a = new String[1]; Object[] b = a; Thanks. By chihiro at 20080107 03:16  LtU Forum  previous forum topic  next forum topic  other blogs  6647 reads

Browse archivesActive forum topics 
Recent comments
2 hours 21 min ago
3 hours 25 min ago
3 hours 53 min ago
4 hours 52 min ago
6 hours 13 min ago
7 hours 52 min ago
9 hours 6 min ago
9 hours 27 min ago
11 hours 34 min ago
12 hours 56 min ago