AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Journey of Adaptation
In TypeScript, an intersection type is not distinct. It's like the same value that has multiple interfaces on it. So your services are intersections because you can have a service that needs a database connector or whatever. With the environment of zero in Scala, there was no need for these types to be distinct. But they do work slightly differently when used with other programming languages such as Java and C#.