Join Slack
Powered by
is it a design or technical reason to allow destru...
# announcements
e
elect
07/16/2018, 1:20 PM
is it a design or technical reason to allow destructurization only for local variables and lambdas? I'm looking for top level variables
p
Pavlo Liapota
07/16/2018, 1:32 PM
Destructuring also works in lambdas.
e
elect
07/16/2018, 1:34 PM
Thanks, edited
a
Andreas Sinz
07/16/2018, 1:41 PM
I'd guess that none has yet requested that feature
p
Pavlo Liapota
07/16/2018, 1:44 PM
It will not be possible to define getter or setter for such declaration, right?
👌 1
k
karelpeeters
07/16/2018, 3:50 PM
Possibly because it's tricky/dangerous to have global variables defined with so much implicitness.
2
Views
Open in Slack
Previous
Next