Using classes also leaves entire segments of type-expression on the table or makes them unwieldy e.g. https://en.wikipedia.org/wiki/Tagged_union
So it's orthogonal, classes are just one possible implementation of types.
Using classes also leaves entire segments of type-expression on the table or makes them unwieldy e.g. https://en.wikipedia.org/wiki/Tagged_union
So it's orthogonal, classes are just one possible implementation of types.