4 ms·
Might you or someone else have some links you could share that talk about covariance and contravariance?
by bogomipz 7y ago
Might you or someone else have some links you could share that talk about covariance and contravariance?
- pulisse 7y agoEli Bendersky has a good post[1] on the topic. [1] https://eli.thegreenplace.net/2018/covariance-and-contravariance-in-subtyping/ https://eli.thegreenplace.net/2018/covariance-and-contravari...
- bogomipz 7y agoOh this is great read, thanks!
- js2 7y agoThe wikipedia has a good explanation: https://en.wikipedia.org/wiki/Covariance_and_contravariance_(computer_science)#Arrays https://en.wikipedia.org/wiki/Covariance_and_contravariance_...