Re:Kotlin vs. Java – An Android Developer's First Impressions
by brentwatson on Wednesday May 03, 2017 @03:21PM
(#14259143)
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.
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:
[0] https://developer.android.com/studio/preview/features/java8-...[1] https://kotlinlang.org/docs/reference/extensions.html