|
|
|
|
|
by andrekandre
1434 days ago
|
|
as someone who has used both (on android) a bit, i also prefer kotlin, but not by such a huge margin that java makes me feel bad. aside from nullability and a few conveniences, what are some examples that really push it over the top for you? |
|
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.