aboutsummaryrefslogtreecommitdiff
path: root/doc/expression.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2023-01-26 20:15:30 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2023-01-26 20:15:30 -0500
commitd4e2b6542548cd2b60815185aaf021d44dca1ff7 (patch)
tree554ae534cd13af7762d889bb41dc40446b8d0c0f /doc/expression.md
parentfe5ed9ad1a2c3cb2b02c4d36077f6acbddc5a11b (diff)
More explicit documentation about roles in a few places
Diffstat (limited to 'doc/expression.md')
-rw-r--r--doc/expression.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/expression.md b/doc/expression.md
index 5359a672..0f6eeccb 100644
--- a/doc/expression.md
+++ b/doc/expression.md
@@ -48,7 +48,7 @@ The four roles are **subject**, **function**, **1-modifier**, and **2-modifier**
Primitive tokens, since they have a fixed value, always have a role that matches their type. They're functions by default, as the modifiers have glyphs that fit specific patterns. 1-modifiers have superscript glyphs, and 2-modifiers have glyphs with an unbroken circle—that is, one without a line through it, excluding functions `⌽` and `⍉`.
-Variable names can be written in any case and with underscores added, and these changes don't affect what [identifier](lexical.md) the name refers to. `ab`, `aB`, `AB`, and `_a_B_` are all the same variable. However, the spelling—specifically the first and last characters—determine the variable's role. A lowercase first letter indicates a subject, and an uppercase first letter makes it a function. A leading underscore (regardless of the following character) indicates a 1-modifier, and both leading and trailing underscores makes a 2-modifier.
+Variable names (including [namespace](namespace.md) fields) can be written in any case and with underscores added, and these changes don't affect what [identifier](lexical.md) the name refers to. `ab`, `aB`, `AB`, and `_a_B_` are all the same variable. However, the spelling—specifically the first and last characters—determine the variable's role. A lowercase first letter indicates a subject, and an uppercase first letter makes it a function. A leading underscore (regardless of the following character) indicates a 1-modifier, and both leading and trailing underscores makes a 2-modifier.
Besides these, character, string, and [array literals](arrayrepr.md#array-literals) always have a subject role, and the role of a [block](block.md) is determined by its type, which depends either on the header it has or which special variables it uses. If headerless, a block is a subject if it has no special names, but a `𝕨` or `𝕩` makes it at least a function, an `𝔽` makes it a 1- or 2-modifier, and a `𝔾` always makes it a 2-modifier.