Not that it is hard to implement. In the future, w...
# language-proposals
e
Not that it is hard to implement. In the future, when there is some kind of macro-system or public compiler-plugin architecture it is going to be easy to roll it out on your own. However, to have it in the language is inconsistent with Kotlin's approach to classes. There are no tupples in Kotlin. What you are basically asking is to have tupples, without actually having them. Tuple is just a collection of data. On the other hand, data class in Kotlin is more than that. It has a name, names for its components, and behaviors beyond the data. Kotlin is not a pure functional language. It is a pragmatic language, aiming to be useful for "enterprise" development (for anything with >>1MLOCs), so it has to strike a balance between object-oriented style and a functional style.
👍🏽 4