logoalt Hacker News

sagarm • today at 12:08 AM • 0 replies • view on HN

You design the enum. If you need kinds separate from the union itself, you have that power.

The union type always implies a kind, after all, so it's a generalization of the concept.