DEV Community

loading...

Discussion on: Make impossible states impossible - Kotlin edition

Collapse
cubiclebuddha profile image
Cubicle Buddha • Edited

Great article. However, I will say if you want first party support for unions it’s likely better to use a language that has unions like TypeScript.

Collapse
psfeng profile image
Pin-Sho Feng Author

I'd say that multiple reasons need to be evaluated before choosing one language or another :)