Skip to content

Add name annotations for all extended name things - #10

Open
bvisness wants to merge 3 commits into
mainfrom
extended-name-annotations
Open

Add name annotations for all extended name things#10
bvisness wants to merge 3 commits into
mainfrom
extended-name-annotations

Conversation

@bvisness

Copy link
Copy Markdown
Collaborator

Just fleshing out the @name part of the proposal. The only interesting part is the claim about where name annotations can be used: always in places where binding identifiers are allowed, plus a few places where non-binding identifiers are allowed, but never where identifiers are not allowed.

I think this claim is correct, and I think it should hold in the future. The non-binding bit is for things like (module (@name "foo")) or (temporarily) for (type (func (param (@name "foo") i32))), but it is not correct to say that name annotations are allowed everywhere identifiers are allowed, because of block $x ... end $x.

@bvisness
bvisness requested a review from rossberg August 14, 2026 17:52
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.

1 participant