Skip to content

Commit 01bf9fb

Browse files
authored
Add inits and subscripts to the underscore rule. (#51)
Exported from the RST version, where this old branch was reviewed by Steve Canon <scanon@apple.com> on Aug 30 and merged Oct 5.
2 parents a3a8d5f + 140ce4a commit 01bf9fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/TSPL/TSPL.docc/ReferenceManual/LexicalStructure.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ that isn't in a Private Use Area.
8787
After the first character,
8888
digits and combining Unicode characters are also allowed.
8989

90-
Treat identifiers that begin with an underscore as internal,
90+
Treat identifiers that begin with an underscore,
91+
subscripts whose first argument label begins with an underscore,
92+
and initializers whose first argument label begins with an underscore,
93+
as internal,
9194
even if their declaration has the `public` access-level modifier.
9295
This convention lets framework authors mark part of an API
9396
that clients must not interact with or depend on,

0 commit comments

Comments
 (0)