https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
e

Edoardo Luppi

10/03/2023, 9:17 AM
Question about K1. When 2.0 ships, will K1 still be there or will it be completely removed?
m

mglukhikh

10/03/2023, 11:33 AM
K1 will still be there up to at least 2.3, however new features from 2.1, 2.2 etc. will not be supported in K1
e

Edoardo Luppi

10/03/2023, 11:40 AM
Thanks! So all features of 2.0 will be on both infrastructures, right? I was a bit worried since I still have cases where K2 doesn't compile correctly, and finding the time to make a small reproducer is hard.
Probably it's better if I wait until 2.0 is released, then I can try it out again.
m

mglukhikh

10/03/2023, 12:10 PM
2.0 has no large features except K2 itself. K2 has a completely rewritten control/Data flow analysis system, and this means that K2 sometimes can perform smart casts in situations when K1 cannot. Naturally these new smart casts are not supported by K1. Also, K2 is faster. All of it means that to gain advantages from version 2.0 you have to use K2.
About bugs you encountered, I recommend you to create YT issue(s) anyway. You could show us a small code fragment and tell "this fragment provokes the following compilation error, but I wasn't able to create a small reproducer". At least we will see an issue and can compare it with other ones, or, maybe, we will be able to reproduce it ourselves.
👍 2
👍🏾 1