Skip to content

Disallow constants to be null#686

Merged
Ms2ger merged 3 commits into
whatwg:masterfrom
saschanaz:patch-1
Mar 15, 2019
Merged

Disallow constants to be null#686
Ms2ger merged 3 commits into
whatwg:masterfrom
saschanaz:patch-1

Conversation

@saschanaz
Copy link
Copy Markdown
Member

@saschanaz saschanaz commented Mar 11, 2019

Closes #448.

No known specs are using constant null, and we discourage adding new constants (with some specs as exceptions), so I think we can safely remove this.


Preview | Diff

Copy link
Copy Markdown
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

I'm surprised we allow them to be booleans.

@Ms2ger
Copy link
Copy Markdown
Member

Ms2ger commented Mar 11, 2019

Travis is complaining about the grammar, it seems.

@annevk annevk requested review from annevk and removed request for annevk March 11, 2019 13:02
@domenic
Copy link
Copy Markdown
Member

domenic commented Mar 11, 2019

Can someone explain "restore ConstType to not break WebGL"? It seems better not to have it.

@Ms2ger
Copy link
Copy Markdown
Member

Ms2ger commented Mar 11, 2019

WebGL uses typedefs for integer types, so we kinda need to support that.

@domenic
Copy link
Copy Markdown
Member

domenic commented Mar 11, 2019

How is that related to the ConstType grammar production?

@saschanaz
Copy link
Copy Markdown
Member Author

saschanaz commented Mar 11, 2019

WebGL has a lot of const GLenum, so removing ConstType will break it.

@Ms2ger Ms2ger merged commit c57bdf8 into whatwg:master Mar 15, 2019
@saschanaz saschanaz deleted the patch-1 branch March 15, 2019 12:08
@bzbarsky
Copy link
Copy Markdown
Collaborator

saschanaz added a commit to saschanaz/weedle3 that referenced this pull request Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants