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
-
-
Replying to @gausby
Except that this inevitably leads to people writing ‘if is_valid?(token) do ...’ and then wondering how the bad guys keep getting in
3 replies 0 retweets 2 likes
Need to deprecate ‘if’ in favour of ‘case’ first
10:53 AM - 29 May 2019
0 replies
0 retweets
2 likes
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.