Why is Scala contravariance so hard?
The Scala type system is powerful, but also hard. We look at contravariance in Scala and try to make some sense out of it.
The Scala type system is powerful, but also hard. We look at contravariance in Scala and try to make some sense out of it.
Pattern matching is one of the most powerful Scala features. Learn to use it to the max so you can write your best Scala code.