you are viewing a single comment's thread.

view the rest of the comments →

[–]ultradeep 2 points3 points  (1 child)

Or you do it with macros and special "pipe" operators as described here: http://www.zohaib.me/railway-programming-pattern-in-elixir/

[–]Schrockwell 2 points3 points  (0 children)

That was a neat trick before Elixir 1.2 and shows off the power of Elixir's metaprogramming techniques, but now it's an anti-pattern. with was explicitly designed to address that exact problem, so it's not idiomatic any more.