can’t I assign to multiple variables a the same ti...
# announcements
o
can’t I assign to multiple variables a the same time?
h
o
yea but it says here it only works for data classes, and in practice they must be new variables, they cant have been declared before
h
I think that's why they're called "Destructuring *Declarations*" 😉
o
…….
damn it
s
you mean var a,b,c,d = 5 ? yeah i miss that too 😞
k
@oday Destructuring declarations also work for objects with operator
componentN()
funtions, basically like operator overloading.