-
Notifications
You must be signed in to change notification settings - Fork 14
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
Can we generate a list with do expressions? #10
Comments
The semantics haven't been decided, I showed 3 possible options on the original gist but there's certainly other interpretations. I'd expect though at the very least that if |
@Jamesernator Ah interesting. I also just found this proposal: I would expect it to return a generator as well, but maybe JSX could automatically convert the generator to an array. |
Related: #14 |
You might be interested in array comprehensions, previously proposed for ECMAScript, but ultimately rejected. Currently, this can be done using the <ul>
{
list.map(item => <li>{item}</li>)
}
</ul> |
I was thinking about syntax like this:
Or is something like this already possible?
The text was updated successfully, but these errors were encountered: