Lecture 13: Dueling Variance: Adventures in Wild Covariance and Contravariance
Making Generics Behave—like Cats Herding Programmers Instead of Mice
This lecture is supported by walks through twelve short programs that explore covariance and contravariance in Java and Scala. Each example is first shown and then discussed in ordinary prose so the …