Idiomatically determine all the characters that can be used for symbols: Difference between revisions
Idiomatically determine all the characters that can be used for symbols (view source)
Revision as of 22:57, 18 December 2018
, 5 years ago→{{header|Julia}}
Line 229:
operator symbol and, if numeric, if it is not the first letter of a symbol name.
For example, x2 is a valid identifier, but 2x is not-- it is interpreted as 2 times the identifier x. In Julia, the Symbol() function turns a string into a symbolic token. So
<lang julia>
for i in 1:0x200000 - 1
Line 237 ⟶ 235:
end
</lang>
=={{header|Kotlin}}==
|