Currently, the Either struct uses two booleans to represent what kind of value we have.
Even though mo doesn't export these booleans, they allow for 4 different states instead of the desired 2. This PR removes the isRight boolean, enforcing only two possible states can be represented internally.
This change has the benefit of simplifying some tests, albeit very minimally.
Currently, the Either struct uses two booleans to represent what kind of value we have. Even though
mo
doesn't export these booleans, they allow for 4 different states instead of the desired 2. This PR removes theisRight
boolean, enforcing only two possible states can be represented internally. This change has the benefit of simplifying some tests, albeit very minimally.