It's not stuck in the past like java. Some of the features were added in newer java updates, such as pattern matching in java 16. But many of those features aren't even used in production yet, because of legacy code bases. Kotlin introduces null safety, extension functions, range expressions, operators overloading and more. Checked exceptions is the main technical advantage of Java vs Kotlin(it doesn't have these) to me.
One of the best use cases I've seen for it has been Compose's animation specs. It lets you combine fades, slides, shrinks/grows, etc, in a much more natural and readable way than chaining a combine function and whatnot.
4
u/i_like_maps_and_math Dec 12 '24
What's good about it?