Boolean blindness is real. When you have a function like `is_valid?` you would most likely rather have a fun that return :valid | {:invalid, reasons}, where reasons is a list explaining why the data is not valid. Sometimes a bool is the right return but not often. #myelixirstatus
-
-
Obviously, question-mark functions are only for boolean results.
-
Without doubt. And my original tweet does not claim or argue otherwise.
- 2 more replies
New conversation -
-
-
Need to deprecate ‘if’ in favour of ‘case’ first
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Can you expand on this?
-
A tuple is truthy. Same for the atom :valid.
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.