DEV Community

Discussion on: Make impossible states impossible - Kotlin edition

cubiclebuddha profile image
Cubicle Buddha • Edited on

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.

psfeng profile image
Pin-Sho Feng Author

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