Skip to content
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

Syntax of list comprehensions / container aggregates #702

Closed
treiher opened this issue Jul 20, 2021 · 0 comments · Fixed by #716
Closed

Syntax of list comprehensions / container aggregates #702

treiher opened this issue Jul 20, 2021 · 0 comments · Fixed by #716
Assignees
Labels
specification Related to specification package (e.g., specification parsing)

Comments

@treiher
Copy link
Collaborator

treiher commented Jul 20, 2021

The current syntax of our list comprehensions deviates from Ada 202X container aggregates.

Current

for ELEMENT in SEQUENCE => EXPRESSION when CONDITION

Ada 202X

for ELEMENT in SEQUENCE when CONDITION => EXPRESSION

RecordFlux

for ELEMENT in SEQUENCE if CONDITION => EXPRESSION

I think we should use the same syntax as Ada 202X if we do not have a good reason for the deviation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
specification Related to specification package (e.g., specification parsing)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant