On Friday, November 4, 2016 at 12:50:55 PM UTC-4, Henri Girard wrote:
>
> I am using julia-6.0 (but any version do it )(what a wonderfull tool) I 
> can even define a new value to a symbol.
>
> What I wish it's only getting rid of quotes : '䷂' = ䷂
>

Single quotes define a Char (character) '䷂', double quotes define a String 
"䷂", and removing quotes corresponds to a variable name ䷂.  Because all of 
these have different meanings, you have to define which one you want.

Of course, you can define a constant, like

const ䷂ = '䷂'

and then ䷂ will mean the character literal '䷂'.   Is this what you want?
 

> Apparently onlu julia can do this ? Is it possible to do it with 
> python/sage ?
>

Most modern language have at least decent Unicode support, e.g. Python 
etcetera has no problem defining and working with Unicode strings.   
 However, most languages are more restrictive than Julia in what they allow 
for variable names.  e.g. Python 3 allows Unicode variable names, but 
doesn't allow ䷂ because Python identifier characters are not allowed to be 
in category So (Symbol, other).   A lot of this is the fault of the Unicode 
consortium, because Unicode recommended that only an annoyingly restrictive 
set of characters be allowed in identifiers 
(http://unicode.org/reports/tr31/). Julia ignores this recommendation 
because it excludes a lot of useful symbols, especially for mathematics.

Reply via email to