Skip to content

Commit d2e7d05

Browse files
authored
fix #16678, add a note about when : symbol quoting syntax works (#32436)
1 parent 92f8c50 commit d2e7d05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/src/manual/metaprogramming.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ julia> Symbol(:var,'_',"sym")
126126
:var_sym
127127
```
128128

129+
Note that to use `:` syntax, the symbol's name must be a valid identifier.
130+
Otherwise the `Symbol(str)` constructor must be used.
131+
129132
In the context of an expression, symbols are used to indicate access to variables; when an expression
130133
is evaluated, a symbol is replaced with the value bound to that symbol in the appropriate [scope](@ref scope-of-variables).
131134

0 commit comments

Comments
 (0)