You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/manual/variables.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,16 +108,15 @@ digits (0-9 and other characters in categories Nd/No), as well as other Unicode
108
108
and other modifying marks (categories Mn/Mc/Me/Sk), some punctuation connectors (category Pc),
109
109
primes, and a few other characters.
110
110
111
-
Operators like `+` are also valid identifiers, but are parsed specially. In some contexts, operators
112
-
can be used just like variables; for example `(+)` refers to the addition function, and `(+) = f`
113
-
will reassign it. Most of the Unicode infix operators (in category Sm), such as `⊕`, are parsed
114
-
as infix operators and are available for user-defined methods (e.g. you can use `const ⊗ = kron`
115
-
to define `⊗` as an infix Kronecker product). Operators can also be suffixed with modifying marks,
116
-
primes, and sub/superscripts, e.g. `+̂ₐ″` is parsed as an infix operator with the same precedence as `+`.
117
-
A space is required between an operator that ends with a subscript/superscript letter and a subsequent
118
-
variable name. For example, if `+ᵃ` is an operator, then `+ᵃx` must be written as `+ᵃ x` to distinguish
119
-
it from `+ ᵃx` where `ᵃx` is the variable name.
120
-
111
+
[Operators](@ref Operator-Precedence-and-Associativity) like `+` are also valid identifiers, but are
112
+
parsed specially. In some contexts, operators can be used just like variables; for example `(+)` refers
113
+
to the addition function, and `(+) = f` will reassign it. Most of the Unicode infix operators (in
114
+
category Sm), such as `⊕`, are parsed as infix operators and are available for user-defined methods
115
+
(e.g. you can use `const ⊗ = kron` to define `⊗` as an infix Kronecker product). Operators can also be
116
+
suffixed with modifying marks, primes, and sub/superscripts, e.g. `+̂ₐ″` is parsed as an infix operator
117
+
with the same precedence as `+`. A space is required between an operator that ends with a
118
+
subscript/superscript letter and a subsequent variable name. For example, if `+ᵃ` is an operator, then
119
+
`+ᵃx` must be written as `+ᵃ x` to distinguish it from `+ ᵃx` where `ᵃx` is the variable name.
121
120
122
121
A particular class of variable names is one that contains only underscores. These identifiers are write-only. I.e. they can only be assigned values, which are immediately discarded, and their values cannot be used in any way.
0 commit comments