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

Add block apply statements #885

Merged
merged 1 commit into from
Aug 9, 2021
Merged

Add block apply statements #885

merged 1 commit into from
Aug 9, 2021

Conversation

mtdowling
Copy link
Member

It is a common requirement to need to apply multiple traits to the same
shape. However, this previously required that the shape ID of the trait
is restated for each applied trait. This added a lot of noise in models,
especially when applying traits to members. With this change, multiple
traits can be applied to a shape using a single statement by wrapping
traits in a block ("{" and "}").

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

It is a common requirement to need to apply multiple traits to the same
shape. However, this previously required that the shape ID of the trait
is restated for each applied trait. This added a lot of noise in models,
especially when applying traits to members. With this change, multiple
traits can be applied to a shape using a single statement by wrapping
traits in a block ("{" and "}").
@mtdowling mtdowling merged commit e39be9d into idl-1.1 Aug 9, 2021
@mtdowling mtdowling deleted the apply-statement-block branch September 21, 2021 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants