Variance Elsewhere
The last post was mainly about the variance explanation and it was using Kotlin. But what about other languages? Let’s explore together. TL;DR Language Generics dec. out dec. in use out use in type erasure break out rules Variance available on Kotlin ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ classes, interfaces Java ✔️ ❌ ❌ … Read more