Re:Nx: Multi-dimensional tensors Elixir lib with multi-stage...
by africanboy on Thursday February 18, 2021 @06:33AM
(#26178627)
Elixir allows overloading the operators or creating custom ones, but only certain symbols are recognized in the parser, to add new operators the Elixir parser needs to be changed.
You can see them here https://github.com/elixir-lang/elixir/blob/master/lib/elixir...
Not all of them are defined in the language, the list of the unused infix operator includes
to define a custom infix operator you can use this syntax if the operator is already defined in Kernel, you can exclude it from import and use your own as you can see @ is not among them, @ it's not a binary operator and is defined as Kernel.@/1