Study Haskell for a while and recently trying the witchcraft. I’m wondering how hard is it to make elixir able to parse operator like <|
and <$>
, and which file(s) should I look into? Thanks for any tips or suggestions in advanced.
1 Like
https://hexdocs.pm/elixir/operators.html#defining-custom-operators
Elixir is capable of parsing a predefined set of operators; this means that it’s not possible to define new operators (like one could do in Haskell, for example). However, not all operators that Elixir can parse are used by Elixir: for example,
+
and||
are used by Elixir for addition and boolean or , but<~>
is not used (but valid).
3 Likes
Thank you so much!