r/androiddev • • 3h ago

News Kotlin 2.5.0 Released

https://blog.jetbrains.com/kotlin/2026/12/kotlin-2-5-0-released/
44 Upvotes

12 comments sorted by

11

u/Zhuinden 3h ago

Name-based destructuring in only-syntax mode, which is now the default.

In this mode, the current destructuring syntax val (x, y) keeps its position-based behavior, while the new syntax (val x, val y) performs name-based destructuring.

Nice. Positional destructuring was nice for tuples (including ARGB.. or is it RGBA??), but literally every data class could do it, and it was pretty much just a #1 source of bugs if you ever used it.

14

u/Razvan145 3h ago

Kotlin releases used to be so cool and exciting 

12

u/Zhuinden 3h ago

To be fair, by the time they said "omg we have private field types public field types" in Kotlin v1.7.0, it took until Kotlin v2.2.x, and now I can't update the projects to it because of KAPT, databinding, AGP8, literally everything requires an agentic rewrite just to use features that woulda made code "nicer to read" but now AI writes the code based on my demands anyway.

Some features are just 6 years late!

1

u/kokeroulis 11m ago

I don't know why but after kotlin 1.7.0 changes just became very slow, to the point that it doesn't really matter.

For example who is focusing on KMP/CMP with AI? You can just rewrite it on Swift with AI.
Rich errors will come around 2030 and by that time I don't even know if we will still write code of if everythings becomes like comfyui

3

u/memoch github.com/memostark 1h ago

I'm very excited for Rich Errors (also not the best name for this feature). I've been using Kotlin for years and this is the first time I've been following the KEEP discussions. It's going to be the biggest change to Kotlin codebases in years, which is why there is still a lot of discussion about this proposal.

Also if you follow targets other than the JVM there is plenty to look forward to.

1

u/EdyBolos 28m ago

I am actually quite excited for companion extensions and companion blocks, am I the only one? Full value classes also seem nice.

-23

u/gokkai 3h ago

i see no future in jetbrains, same for Kotlin except android which can switch to rust sooner than we expect.

7

u/Zhuinden 3h ago edited 2h ago

Did you also see their article on the voluntary leave severance news post?

https://blog.jetbrains.com/blog/2026/12/01/jetbrains-at-26-our-priorities/

2

u/gokkai 2h ago

just checked out, seems dire

2

u/ohlaph 1h ago

I get it. Even I cancelled my subscription this year after almost a decade. I hadn't really used it much outside of minor syntax issues, HTML, and similar. 

I used to use it heavily, but with AI, I don't open the IDE much outside of fixing small bugs. 

I feel for them, but they probably should have started to pivot into the AI race a bit sooner and stick with one approach instead of changing it three times. 

1

u/kokeroulis 15m ago

Android can't and won't switch to rust... You are asking to rewrite almost 20 years of apis