There are some operators that currently have no meaning, but you can use them in the macros that you define, or simply define them as functions. For example:
defmodule Operators do def a ~>> b do a + b end end defmodule Test do def test do import Operators 1 ~>> 2 end end IO.inspect(Test.test) # => 3
The general idea is that Elixir wants to avoid operator propagation (think of libraries that define dozens of new operators), so you need to use existing ones to define your macros.
source share