4 ms·
> - &with/1 can be hellza confusing in many case if you're calling a bunch of functions, and any ol' one of them can return an error message (e.g. where the hec
by tomjakubowski 5y ago
> - &with/1 can be hellza confusing in many case if you're calling a bunch of functions, and any ol' one of them can return an error message (e.g. where the heck did `{:error, :bad_arg}` come from?!
You agree with the article on this point:
with is best used when you can fall through at any point without worrying about the specific error or contrary pattern.