https://kotlinlang.org logo
Title
r

Rafa

03/07/2019, 8:29 PM
maybe a question for someone from jetbrains, unless somebody else knows the answer. But why is it that we only have 5
component
extension properties on a collection, but with a data class we generate
componentN
up until (what i'm assuming, couldn't find documentation on it) we reach the limit of functions that can be created in a class on the JVM?
m

Marc Knaup

03/07/2019, 8:38 PM
I guess it's to not let the stdlib become too large, esp. for Android where method code plays an important role. A dynamic version of
componentX()
would be useful here!