4 Matching Annotations
- Feb 2021
-
sobolevn.me sobolevn.me
-
Let’s start with the same number dividing example, which returns 0 when the error happens. Maybe instead we can indicate that the result was not successful without any explicit numerical value?
-
You can use container values, that wraps actual success or error value into a thin wrapper with utility methods to work with this value. That’s exactly why we have created @dry-python/returns project. So you can make your functions return something meaningful, typed, and safe.
-
-
en.wikipedia.org en.wikipedia.org
-
can transform monadic values m a applying f to the unwrapped value a
-
procedure to wrap values of any basic type within the monad (yielding a monadic value)
-