KotlinConf 2024 shocked me with a new announcement. Union types are coming to Kotlin! However, in a limited form. At first, I couldn't understand why, but after some talks and discussions, I realized that it is a very smart move. Now let me show you the big picture. One feature I have always admired in other programming languages is union types, such as Int | String. I haven’t had any specific pla
![The problem of union types for type systems](https://cdn-ak-scissors.b.st-hatena.com/image/square/5328c3f7deae21e134e1d92bebc245cbc920424a/height=288;version=1;width=512/https%3A%2F%2Fmarcinmoskala.com%2Fkt-academy-articles%2Fimages%2Funion-types-intro-cover.jpg)