DEV Community

Discussion on: Functional programming in typescript using fp-ts: ReaderTaskEither

Collapse
 
peerhenry profile image
peerhenry • Edited

I would say:

  1. Don't misuse Either - for example don't return a right when you have an error.
  2. Don't use Either when you neeed something else; a common use case is validation where you need to collect multiple validation errors instead of a single error. Checkout this article on Either vs Validation

Hope that helps, cheers!