https://kotlinlang.org logo
#compose
Title
# compose
m

molikto

03/23/2020, 4:27 AM
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

Leland Richardson [G]

03/23/2020, 4:41 AM
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

Klaas Kabini

03/23/2020, 6:33 AM
I would also love to see unions in Kotlin.
s

streetsofboston

03/23/2020, 11:57 AM
👍 2
c

codeslubber

03/23/2020, 5:47 PM
Kind of funny that Kotlin took all Scala’s ideas, now it’s taking them before they even make it out of the incubator!
4 Views