Article
in Developers
Covariance and Contravariance in Scala
I spent some time trying to figure out co- and contra-variance in Scala, and it turns out to be both interesting enough to be worth blogging about, and subtle enough that doing so will test my understanding! So, you’ve probably seen classes in Scala that look a bit like this: [cc escaped=”true” lang=’scala’ ] sealed […]
Join over 150,000 working professionals
Get the latest research and insights on AI, teamwork, and more.
