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
Right, my reply was more about the dangers of boolean coercion, which might bite people regardless of function name. Use ‘case’ even for boolean returns and let it crash if you made incorrect assumptions
-
-
IF considered harmful
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.