Post

Fully agree. I would also consider converting the 2 boolean functions to those that return :ok | {:error, reason}: is_email_address? => validate_email_address is_available => check_availability It's also future-proof if additional error reasons pop up. You may say I generally dislike booleans :)

oh sure, they have their place. Also, I'd use your approach if the boolean funs would come from a lib, for example.

0 reposts1 like