From 56e8508a303950ea7f3c9da47773c00a877d6625 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 16 Oct 2015 12:25:19 +1100 Subject: 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 --- julia.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'julia.html.markdown') 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 -- cgit v1.2.3