summaryrefslogtreecommitdiffhomepage
path: root/julia.html.markdown
diff options
context:
space:
mode:
authorBen Harris <mail@bharr.is>2015-10-16 12:25:19 +1100
committerBen Harris <mail@bharr.is>2015-10-16 12:25:19 +1100
commit56e8508a303950ea7f3c9da47773c00a877d6625 (patch)
tree5755bff3022adbe82c0668da575443ecd5047115 /julia.html.markdown
parent66bc42e31bf62a1592f9b763e12c0b963b3e7d3d (diff)
Update Julia variable names
Julia supports underscores at the beginning of a variable name now. It also supports a subset of Unicode code points for the first character, and additional code points for subsequent characters. A full explanation of all available code points was excluded as it is quite complicated and doesn't add much value in the X in Y context. closes #516
Diffstat (limited to 'julia.html.markdown')
-rw-r--r--julia.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/julia.html.markdown b/julia.html.markdown
index c5089dc3..cba7cd45 100644
--- a/julia.html.markdown
+++ b/julia.html.markdown
@@ -117,11 +117,11 @@ catch e
println(e)
end
-# Variable names start with a letter.
+# Variable names start with a letter or underscore.
# After that, you can use letters, digits, underscores, and exclamation points.
SomeOtherVar123! = 6 # => 6
-# You can also use unicode characters
+# You can also use certain unicode characters
☃ = 8 # => 8
# These are especially handy for mathematical notation
2 * π # => 6.283185307179586