Kotlin, the Swift of Android
61–70 of 114 posts
Re: Kotlin, the Swift of Android
#62Re: Kotlin, the Swift of Android
#63I don't understand why this is preferable.
Re: Kotlin, the Swift of Android
#64It would be nice if more of this was folded into Java itself, rather than existing as a new language - as the author notes a lot of it is in Java 8.
Kotlin has stuff that's unlikely to appear in Java, such as reified generics - Java has already chosen type erasure generics instead. I wouldn't bet a penny that they ever change this approach if they didn't go with it from the start.
Re: Kotlin, the Swift of Android
#65> This means that if text2 is null, the replace() method call is ignored and no NullPointerException is thrown. I don't understand why this is preferable.
if (text2 != null) {
text2.replace()
}
Essentially they're moving support for @Nullable and @NotNull into the language and compiler.Re: Kotlin, the Swift of Android
#66Re: Kotlin, the Swift of Android
#67A lot of these things are already in Dart, which has a much nicer syntax. If they're going to switch from Java, I'd want them to choose Dart.
Re: Kotlin, the Swift of Android
#68Re: Kotlin, the Swift of Android
#69Earlier quoted context omitted.
Oh, thanks for the correction. I had assumed that JetBrain develops Android Studio and Google just puts their stamp on it.
Well that pretty much is what happens. JetBrains wrote IDEA and the Android support for it. Google made some small modifications (some good, some detrimental), and packaged it with the Android SDK. The biggest change was to switch to gradle which is a more powerful build system but also much buggier (at least in the current Android Studio). They also lots of useful Android-related tools and lints, and a fair helping…
Re: Kotlin, the Swift of Android
#70A lot of these things are already in Dart, which has a much nicer syntax. If they're going to switch from Java, I'd want them to choose Dart.
Dart supports shared memory multi threading?