-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
await...then shorthand #957
Comments
I'd recommend an implicit variable as an option, since seeing Coming from a groovy background we always have Explicit: def myVariable = 'foo'
myVariable.with { myVariable ->
myVariable == 'foo'
} Implicit: def myVariable = 'foo'
myVariable.with {
it == 'foo'
} So this would mean you could either have the implicit: {{#await foo}}
{{it}} equals foo
{{/await}} Or the explicit: {{#await foo then quux}}
{{quux}} equals foo
{{/await}} Sorry about the atrocious code examples, it's been a long day! |
Thanks for the idea. To be honest I think that's a bit more confusing — it's not at all clear at first glance that the |
Follow-up to #952. This...
...would be a nice shorthand for this:
The text was updated successfully, but these errors were encountered: