Join Slack
Powered by
Hi. Is it weird or bad in any way to use an Either...
# arrow
h
herlevsen
02/06/2019, 2:54 PM
Hi. Is it weird or bad in any way to use an Either<Error, Unit> to validate some condition? For example “checkUserIsOldEnough(user: User): Either<Error, Unit>“. Is there a better suited way, when we don’t need the “Right” path?
Open in Slack
Previous
Next