Immutable and Persistent Lists - TypeAlias Show Clip

  Рет қаралды 2,195

Dave Leeds

Dave Leeds

Күн бұрын

Пікірлер: 13
@robchr
@robchr 21 күн бұрын
This is why Compose by default does not treat `List` as stable since it may actually be mutable.
@gb_kash
@gb_kash 21 күн бұрын
Awesome 👍
@LightDante
@LightDante 21 күн бұрын
why is this api still unreleased?
@typealias
@typealias 20 күн бұрын
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.
@jansmycka4338
@jansmycka4338 21 күн бұрын
"a MutableList" sounds awfully similar to Immutable list 😅
@typealias
@typealias 21 күн бұрын
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-de
@teenriot-de 21 күн бұрын
Yeah, "ReadOnly" is a better choice imho.
@pablovaldes6022
@pablovaldes6022 21 күн бұрын
I just treat my mutable list carefully and that's it. Immutability is mental 😅
@typealias
@typealias 21 күн бұрын
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-zp1ob
@ITksh-zp1ob 19 күн бұрын
just one more example of how kotlin is badly designed
@teenriot-de
@teenriot-de 17 күн бұрын
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.
@kirillsh8383
@kirillsh8383 17 күн бұрын
​@@teenriot-de ahaha, very funny
Inline Functions: inline, crossinline, and noinline
11:59
Dave Leeds
Рет қаралды 7 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 983 М.
Coroutines: Concurrency in Kotlin
30:22
Dave Leeds
Рет қаралды 19 М.
Advanced Kotlin: Generics, Type Erasure, and Reflection Explained
23:00
Applying the Decorator Pattern in Kotlin
12:25
Dave Leeds
Рет қаралды 6 М.
AI Is Not Designed for You
8:29
No Boilerplate
Рет қаралды 230 М.
Applying the State Pattern in Kotlin
12:55
Dave Leeds
Рет қаралды 7 М.
Was I Wrong About Blazor? | Coding Shorts 111
16:35
Shawn Wildermuth
Рет қаралды 29 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 818 М.
Every Kind of Class in Kotlin
10:44
Dave Leeds
Рет қаралды 16 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН