Re:Java 1.0 Turns 25
by frevib on Saturday January 23, 2021 @10:33AM
(#25882908)
Kotlin is slighty better Java. No more getters, setters, hashcode and toString. Kotlin is also much better Java for asynchronous programming, null-safety, and functional programming. It’s modern Java.
[ Parent
| on HN ]
Re:Java 1.0 Turns 25
by twistedpair on Saturday January 23, 2021 @01:53PM
(#25885031)
Same goes for Scala and Case Classes. Alas the type astronauts went crazy with Scala, scaring some folks off.
I agree. I wish the Scala community would inherit some of the simplifying culture of the Go community.
Scala 3 introduces a number of simplifications. For example, typeclasses and other constructs are much easier with Scala 3. This said, Scala always included the idea of having a powerful type system. From this perspective, it can never be as simple as a language that doesn't have a comparatively powerful type system (or no static type system at all).
The philosophy behind Kotlin and Java really couldn't be more different. Go is much closer to a modern Java than Kotlin.
Kotlin does have some nice additions. But it is very much a kitchen sink language. I wish I could take some of those nicer additions and leave the sink.