by mike_hearn · 11y ago · 0 comments
Kotlin has deconstruction:
val (a,b,c) = myDataObject
Their documentation did indeed commit this sin when I first started using Kotlin last year. It's been cleaned up considerably and this is no longer an issue (except, I think, for the mysterious modules which appear to be an IDE specific concept).2. Sorry, wording is vaque, often deconstruction is
val MyValueObject(a,b,c) = myObject