One thing really nice with Scala 3 is union types....
# compose
m
One thing really nice with Scala 3 is union types. It will be wonderful if Kotlin support it, then we can have a API
fun Button(text: String | AnnotatedString | @Composable () -> Unit)
. or implicit conversions (which is more powerful for better or worse
2
l
yes, definitely. union types is my number one ask for kotlin as a language.
when we made the decision to target functions as the “component” of compose this was what i considered as the biggest risk/downside
k
I would also love to see unions in Kotlin.
s
👍 2
c
Kind of funny that Kotlin took all Scala’s ideas, now it’s taking them before they even make it out of the incubator!