Is Returning void in Success Channel a Code Smell?
More of a API question. I have a this function:
type ValidatePassword = (p1: Password.Plaintext, p2: Password.Hashed) => Effect.Effect<void, PasswordsDoNotMatch>
type ValidatePassword = (p1: Password.Plaintext, p2: Password.Hashed) => Effect.Effect<void, PasswordsDoNotMatch>
I could make it just return an Effect<boolean> but I don't think it played nice with the combinators available. Is a void in the success channel a bit of a code smell? It feels dirty.