Join Slack
Powered by
I'm just getting started with Kotlin. Does anyone ...
# android
b
ben
03/11/2017, 5:10 PM
I'm just getting started with Kotlin. Does anyone know how good the Android Studio java to kotlin code convertor is?
m
miha-x64
03/11/2017, 5:38 PM
@ben
J2K converter is bundled with Kotlin plug-in, just click Code -> Convert Java file to Kotlin file.
b
ben
03/11/2017, 5:40 PM
I was wondering how accurate it is. Can I directly convert and not worry about it, or do I have to check everything it generates?
m
miha-x64
03/11/2017, 5:42 PM
Of course it is not perfect, and converted code can be cleaned up in many places. But, IMO, it's quite accurate and very helpful for learning Kotlin.
b
ben
03/11/2017, 5:44 PM
Ok thanks
b
bachhuberdesign
03/11/2017, 6:51 PM
@ben
Never had a problem with it, sometimes I have to manually edit the syntax a bit but for the most part its great
m
mg6maciej
03/11/2017, 7:38 PM
This is how I learned Kotlin in the first place! Wrote some Java and saw how it looked in K.
👍 1
p
Paul Woitaschek
03/12/2017, 2:34 PM
Fails a lot when you use rxjava
Open in Slack
Previous
Next