Anyone else find that the Kotlin stdlib (especiall...
# random
e
Anyone else find that the Kotlin stdlib (especially collections) has spoiled them and made it practically impossible to use other languages
💯 10
k
s/other languages/Java/
-> yes.
h
Well, there is also Scala, many collections APIs are influenced by Scala, but I absolutely agree, the Kotlin collection api is the main reason to switch to/stay in Kotlin.
a
lastOrNull always triggers me if I am not on kotlin land
s
Feel the same.
a
I'm doing a lot of TypeScript for my job and yes, so much :')
e
really depends on the language. I find Python's stdlib is both more and less extensive in different ways, but Haskell and Rust are almost entirely more convenient than Kotlin
and even Java has been picking up some conveniences lately
e
I was planning on taking a look at Rust at some point, so I just looked now. Personally I like how Kotlin reads better (probably biased) but Rust is not bad at all 😄
e
I've said it before that Rust looks like OCaml with vaguely C-styled syntax. overall it is a more complex language than Kotlin but if you think through it, it's not hard to see why language design decisions were made the way they were (and why they are different between Rust and Kotlin)
d
Where else would I find my beloved
firstOfNotNullOrNull
?
4