I know operators in Julia are just standard functions, and I can use them using the ordinary prefix call syntax:
julia> +(1, 2)
3
However, they are also special in the sense that they can be (and are usually) used as infix operators:
julia> 1+2
3
Could I define my own infix operator? If so, how?
For example:
julia> α(x, y) = x+y
α (generic function with 1 method)
julia> α(1, 2)
3 # as expected
julia> 1α2
# expected result: 3
ERROR: UndefVarError: α2 not defined
Stacktrace:
[1] top-level scope at REPL[5]:1
julia> 1 α 2
# expected result: 3
ERROR: syntax: extra token "α" after end of expression
Stacktrace:
[1] top-level scope at REPL[5]:0