https://kotlinlang.org logo
Title
n

nino

02/06/2018, 8:11 AM
Why Android KTX? https://android-developers.googleblog.com/2018/02/introducing-android-ktx-even-sweeter.html Wouldn’t it be better to maintain the same coding style on all platforms?
g

gildor

02/06/2018, 8:13 AM
Same coding style? all platforms? What are you talking about? Java and Kotlin? But with Kotlin you can provide much more pleasant API that impossible in Java, so make sense to have such extensions. Also everyone already have own versions of them and don’t forget about Anko
n

nino

02/06/2018, 8:51 AM
My question refers only to Kotlin. KTX creates a even more simplified style only for Android developers, so that as soon as you got used to this it will be harder for an Android dev to write backend code in Kotlin
e

ebonet

02/06/2018, 8:52 AM
Android KTX are extensions to Android API
it doens’t change kotlin
n

nino

02/06/2018, 8:52 AM
that’s what I mean
I know
e

ebonet

02/06/2018, 8:53 AM
so how does this affect backend? it was platform specific either way
n

nino

02/06/2018, 8:53 AM
ah, I get your point @ebonet
I had the uri example in mind
but it’s about the android uri
so thanks for the clarification!
e

ebonet

02/06/2018, 8:55 AM
np 😄