Open norpan opened 7 years ago
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.