-
Notifications
You must be signed in to change notification settings - Fork 34
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
freely mix comprehensions, spread arguments, and listed arguments #868
Labels
Milestone
Comments
I noticed that you can’t spread arguments in a comprehension: {Result+}|NoResult ret = getResults();
{Result*} resultsOrNothing = { if (is {Result+} ret) *ret }; isn’t allowed, you have to emulate it with an extra |
@lucaswerkmeister that is #860. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, for no particularly good reason, a spread argument or comprehension must be the very last argument in a list of arguments. For #807 we should remove this limitation, allowing all three kinds of arguments to be freely mixed.
The text was updated successfully, but these errors were encountered: