6 ms·
"data class" is already in Kotlin flavor. Yes, I refuse to call Kotlin a different programming language like Scala, because it's just syntactic sugar over good
by deepsun 9y ago
"data class" is already in Kotlin flavor.
Yes, I refuse to call Kotlin a different programming language like Scala, because it's just syntactic sugar over good-ol-Java, while all tools, approaches, stackoverflow are the same. But it has the data classes, implemented just like the article described.
- ben-schaaf 9y agoHave you actually used kotlin before? It most certainly has features that are much more than just syntactic sugar.
- deepsun 9y agoYes, I use it every day and absolutely love it. Especially the part that it's still syntactic sugar over Java.
- ben-schaaf 9y agoIt does a lot more than just syntactic sugar. It expands the type system with nullable types, smart casts and covariant/contravariant generics, and it has actual closures. I agree that most of the features kotlin provides are syntactic sugar over Java, but kotlin is as much a separate language to Java as Scala is.