Homepage
Sign in / Sign up
Go to the profile of Andrew Benz
Andrew Benz
Mar 2, 2016
Making error handling a breeze with “WITH” macro in Elixir 1.2
Sikan
221

In all the cases where you have:

{:ok, result2} <- half(result2),

Did you mean to write:

{:ok, result2} <- half(result1),

Since result2 doesn’t yet exist?

Great article, though! I’m still learning Elixir and never heard of ‘with’!

  • Go to the profile of Andrew Benz

    Andrew Benz

    • Share
    Go to the profile of Andrew Benz
    Never miss a story from Andrew Benz, when you sign up for Medium. Learn more
    Never miss a story from Andrew Benz