Scala3 Vlog: Intersection Types
Hello folks,
We have released another video on Scala3 series which talks about Intersection Types.
Get Knoldus Inc.’s stories in your inbox
Join Medium for free to get updates from this writer.
Intersection Type is a type which is the mixin of multiple types. For example, the intersection types of two different type A and B would be A & B.
Intersection Types A & B replaces compound types A with B in Scala2. But the interesting feature about Intersection Types is that they too are commutative by nature, which means A & B is same as B & A.
Watch out the video on Intersection Types and get more details on it.







