Skip to content

Add tests to check for keyword redefinition allowing @protected. #158

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

Merged
merged 2 commits into from
Oct 4, 2019

Conversation

gkellogg
Copy link
Member

@gkellogg gkellogg commented Sep 27, 2019

Copy link
Contributor

@pchampin pchampin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, although pr32 came as a surprise...

"@type": {"@container": "@set", "@protected": true}
}, {
"@version": 1.1,
"@type": {"@protected": true}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it considered as an attempt to override @type?
Is it because it implies the opposite of "@container": "@set"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes,
Because it would change the container association with @type. But, this might not be important, because it wouldn’t change the interpretation when expanding, but could create an alternate representation when compacting.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to @gkellogg -- and better not to have subtle surprises like that.

"@type": {"@container": "@set", "@protected": true}
}, {
"@version": 1.1,
"@type": {"@protected": true}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to @gkellogg -- and better not to have subtle surprises like that.

@gkellogg gkellogg merged commit f811690 into master Oct 4, 2019
@gkellogg gkellogg deleted the protected-keywords branch October 4, 2019 15:57
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.

3 participants