这是indexloc提供的服务,不要输入任何密码
Skip to content

Attribute syntax should not specialize to built-in language attributes #3520

@mehmetoguzderin

Description

@mehmetoguzderin

Attribute syntax should not specialize to built-in language attributes.

The inclusion of attributes within syntax creates unnecessary duplication and, furthermore, increases grammar footprint for no reason at all (similar to why people do not include function overloads inside grammar).

We are already at harm by this- the last consensus of attribute syntax DID allow trailing commas (in consistency with elsewhere), but the change to make them part of grammar did not preserve this- and did so silently. (represents this syntax with a trailing additional rule- unnecessary convolution)

I consider this an editorial issue; the attribute overloads should be much better live in the table, and the context-dependent words listing can be just a plain list that enumerates.

Metadata

Metadata

Labels

copyeditingPure editorial stuff (copyediting, *.bs file syntax, etc.)wgslWebGPU Shading Language Issueswgsl resolvedResolved - waiting for a change to the WGSL specification

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions