Hacker News new | ask | show | jobs
by muzani 1438 days ago
Java 8 has nullability plus some of the sexy functional programming stuff like map and filter.

I think Kotlin's real selling point is things like lambdas. You get stuff like Jetpack Compose, which become much more readable with it. Stuff like combine() mixed together with coroutines, which helps a lot with anything async (UI, local and remote DBs).

A practical example is combining multiple different sources into one LiveData or State variable. It's a way to asynchronously update stuff without a lot of mental overhead.

1 comments

  > I think Kotlin's real selling point is things like lambdas. You get stuff like Jetpack Compose, which become much more readable with it. Stuff like combine() mixed together with coroutines, which helps a lot with anything async (UI, local and remote DBs)
that makes a lot of sense, and yes, i'd miss that if it wasn't available in java as well, thanks!