Before We Continue: Either or Validation?
Learn why Validation is a useful alternative to Either.
We'll cover the following...
Either vs. Validation
Suppose we receive data from a frontend where a user has just filled in their information. A situation where the user fixes their errors one at a time instead of just getting back a list of all problems might not be ideal. This might lead to user frustration and additional calls to our backend because the data is resubmitted multiple times. This is why Validation can be a useful alternative to Either.
Access this course and 1400+ top-rated courses and projects.