This is why Compose by default does not treat `List` as stable since it may actually be mutable.
@gb_kash21 күн бұрын
Awesome 👍
@LightDante21 күн бұрын
why is this api still unreleased?
@typealias20 күн бұрын
Yeah, seems pretty stable by now. There are quite a few official libraries, and I'm sure they all took a back seat to K2 until earlier this year. The roadmap shows a focus on ktor, exposed, kotlinx-datetime, and kotlinx-io. So this one might stay in its current state for a bit.
@jansmycka433821 күн бұрын
"a MutableList" sounds awfully similar to Immutable list 😅
@typealias21 күн бұрын
Haha, it sure does! It tripped up the transcribing software at least once, but I think I caught them all, so hopefully the subtitles are all correct. 😂
@teenriot-de21 күн бұрын
Yeah, "ReadOnly" is a better choice imho.
@pablovaldes602221 күн бұрын
I just treat my mutable list carefully and that's it. Immutability is mental 😅
@typealias21 күн бұрын
I'm guessing that's the approach that most developers take. Just gotta watch out for that shared mutable state - thankfully if you're targeting JVM, you've at least got some options for synchronized or concurrent collections.
@ITksh-zp1ob19 күн бұрын
just one more example of how kotlin is badly designed
@teenriot-de17 күн бұрын
Its not Kotlins Design, its Javas Design. Kotlin was designed with the intention to give java developers a smooth opportunity to switch to Kotlin. So you have those Java elements in Kotlin still today. Everything Kotlin designed completely on its own has a much higher quality level. But as company you cant throw the industry standard java with all its existing libraries and products away when you want people to take you serious. And they did a great job in solving the dilemmas between Java and Kotlin, as best as possible.