Setminus unicode operator

I am trying to use the setminus unicode character as a function name but I get an error (julia 1.01).

 julia> ∖(A,B) = setdiff(A,B)
 ERROR: syntax: invalid character "∖"

  julia> (∖)(A,B) = setdiff(A,B)
 ERROR: syntax: invalid character "∖"

What am I doing wrong here?

As far as I know, the only characters which can be used as identifiers or operators are the ones listed here: julia/julia-parser.scm at master · JuliaLang/julia · GitHub

1 Like

It is discussed in this issue: https://github.com/JuliaLang/julia/issues/26361#issuecomment-371849427

1 Like