Tag: Covariance
-
Immutability and Co/Contravariance
After a long long time… Immutability also Empowers Type Safety. There are many reasons to use immutable data structures and you may have heard many of them. For example, immutable data is safe to be shared across multiple threads etc. Apart from all of these awesome benefits, immutability helps us…