https://kotlinlang.org logo
Title
s

SerVB

03/25/2022, 5:45 PM
Today (PR: https://github.com/krzema12/kotlin-python/pull/123): • found out that do-while is implemented with a bug that made it practically nonworking, partially fixed it (+19 box tests pass). However, it can improved further: https://github.com/krzema12/kotlin-python/issues/122; • supported same-named local variables (+12); • supported more reinterpret casts (+47). Bumped into those problems while researching what can be adjusted in the stdlib (started with "name 'Array' is not defined"). And was able to fix those without changes to the stdlib. Next time: I think I will delay changes to the stdlib because now we can apply it only to tests. Current three topics are worth further research, so will continue with them.
:android-dance: 1
:kotlin-intensifies-purple: 2
🙌 1
p

Piotr Krzemiński

03/25/2022, 6:28 PM
awesome, +78 tests supported, plus list's size can be fetched 🙂 👏
s

SerVB

03/25/2022, 6:31 PM
Actually, also the list can be created 😆 It wasn't working before: https://discuss.kotlinlang.org/t/idea-python-backend/19852/13?u=krzema12#talk-is-cheap-show-me-the-code-3
p

Piotr Krzemiński

03/25/2022, 6:32 PM
yeah! great 🙂 can you also fetch an element from it by index?
or, I dare to ask, call
map
or
filter
?
s

SerVB

03/25/2022, 6:34 PM
can you also fetch an element from it by index?
Nope, unfortunately
get
doesn't work. Some problem with type checking. I guess here we should just adjust the stdlib.
map or filter?
They involve mutable list construction and it doesn't work atm
👍 1