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  7867 reads

Browse archivesActive forum topicsNew forum topics

Recent comments
7 hours 12 min ago
16 hours 48 min ago
17 hours 43 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 4 hours ago
2 days 1 hour ago
4 days 4 hours ago
4 days 4 hours ago
5 days 14 hours ago