-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destructing For #56
Comments
No plans, but I wouldn't be opposed to it. |
Nice suggestion, but it makes a strange construct even more weird. First of all we are using a string to define a variable. That is neither elegant nor unproblematic; at least TypeScript / Flow won't accept this. On the other hand we don't know of any other way to realize this functionality. |
Agree on those points @texttechne. |
Perhaps something like:
Inside we utilise
|
Nope :( By the time you've done this:
Wouldn't you be better off just using the equivalent |
@navgarcha you're right to use a function there to 1) create variables and 2) use those variables in the correct scope. But as soon as you use functions it defeats the purpose of the
|
Are there plans to support destructing the
each
prop in theFor
control statement? For example something like this:<For each="{ firstName, lastName }" index="i" of={this.people}>
The text was updated successfully, but these errors were encountered: