Consistent return value #730
Unanswered
drselump14
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm sorry if it's already been discussed. I can't find it in the issues.
I was wondering if there is a specific reason for keeping
value | { :error, term }
format for several functions and using{:ok, value} | {:error, term }
for other functions.Isn't it better to use the latter format consistently?
The former format not working well with
with
keyword, so I prefer the latter format.Any help would be appreciated
Beta Was this translation helpful? Give feedback.
All reactions