Keyword-named instance members are unreachable via qualified access #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A def body may bind
--map = through .p .q(member names are ordinary identifiers), but--[$i map]is a syntax error —maplexes as theMAPkeyword, and the member position in.[$i m]/--[$i m]only acceptsIDENT. Same foras,cross,step,through, etc.Either accept keywords in member position (the grammar is unambiguous there — between
$iand]) or document that member names must avoid keywords and reject them at binding time inside def bodies. Silently unreachable members are the worst of the three options.Follow-up to #35.