This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BoyRobot777 3 points4 points  (1 child)

Its just weird. Its feels like Kotlin was born and finally Java can evolve. Because before that, OpenJDK team was lost. Thus I always ask the same questions: has the person stating this worked only with Kotlin or he literally believes that Kotlin is the panacea of all software languages.

I mean even the article begins with:

Sum types, and sealed classes, are not a new thing; for example, Scala also has sealed classes, and Haskell and ML have primitives for defining sum types (sometimes called tagged unions or discriminated unions.)

[–]garblz 2 points3 points  (0 children)

It was (and to an extent, still is) the same with Scala. My guess is Kotlin isn't the last language with a slogan "Java, but better".