either
function for avoiding throwing functions
#16
meech-ward
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just an idea for situations where we want to use the same might-fail api, but in cases where throwing makes no sense.
We could have an
either
function that allows non throwing behaviours:Here's a basic implementation that would work with synchronous code:
Is this a good or bad idea, can it be implemented better?
Beta Was this translation helpful? Give feedback.
All reactions