4 ms·
I don't mean to be uncharitable but no, that's not how it works. You pass the Either<Error, Foo> or Maybe/Option<Foo> around, usually to the edge of the system
by bedobi 2y ago
I don't mean to be uncharitable but no, that's not how it works. You pass the Either<Error, Foo> or Maybe/Option<Foo> around, usually to the edge of the system where you map, flatMap or fold it into something.
- codedokode 2y agoBut this is ugly, for example, if I have a square root function, I don't want it to accept Error.
- bedobi 2y agoNo function should accept error