remiq/railway-oriented-programming-elixir

Change `>>>` macro to be compatible with `mix format`

Fl4m3Ph03n1x opened this issue · 0 comments

Right now using Rop makes it impossible to use mix format in the projects because the code will not be correctly indented.

The reason for this is that >>> is also a bitwise operator. This measn the macro also clashes with the >>> bitwise operator.

A possible solution would be to change the >>>/2 macro to a pipeline like operator:

https://elixirforum.com/t/make-mix-format-work-with-pipeline-macros/39400/4?u=fl4m3ph03n1x

This way people would be able to use mix format and any possible clashes with the >>> operator would also be fixed.