3 ms·
Android actually now has some Java 8 feature support out-of-the-box [0] though most are API 24+. After porting our code base to Kotlin we found it provides mor
by brentwatson 9y ago
Android actually now has some Java 8 feature support out-of-the-box [0] though most are API 24+.
After porting our code base to Kotlin we found it provides more benefits over Java than just being less typing / "syntactic sugar". To name a few:
- First class functional support (streams feel clunky in comparison).
- Extension functions [1].
- Nullable types (compile-time null checking).
- Less verbose as types declarations are optional in many situations.
- Great interop & tooling from JetBrains makes a slow transition from Java -> Kotlin pretty seamless.
[0] https://developer.android.com/studio/preview/features/java8-support.html https://developer.android.com/studio/preview/features/java8-...
[1] https://kotlinlang.org/docs/reference/extensions.html https://kotlinlang.org/docs/reference/extensions.html
- yincrash 9y agoWere the downsides manageable? Increase in APK size / build time?