You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How about having a additional run! function that raises an error instead of returning {:error, ...}?
This seems to be the canonical elixir way to do things and would make it easier to write code and not have to pattern match :ok on each call.
The text was updated successfully, but these errors were encountered:
Indeed one could write such a function, but Elixir itself has different versions of functions so it makes sense to supply these in this library as well. Otherwise every user has to research and implement these themselves.
How about having a additional
run!
function that raises an error instead of returning{:error, ...}
?This seems to be the canonical elixir way to do things and would make it easier to write code and not have to pattern match
:ok
on each call.The text was updated successfully, but these errors were encountered: