Scala Generics

Scala Generics

Scala Generics III: Generalized type constraints

This is the third article in our series of Scala Generics ( we have already looked at upper and lower Scala Type bounds, Covariance and Contravariance) and today we are going to talk about constraints, to be more specific about generalized … Read More

Scala Generics

Scala Generics II: Covariance and Contravariance

In the previous article we looked at Scala Type bounds, today we will continue with Scala generics and talk about Covariance and Contravariance in generics. Liskov substitution principle (the L. of S.O.L.I.D.) specifies that, in a relation of inheritance, a type … Read More

Secured By miniOrange