4 ms·
Although it's not what the site is talking about, I think it's often a lot more readable when many "if"s are replaced with "switch" statements or their big brot
by mquander 17y ago
Although it's not what the site is talking about, I think it's often a lot more readable when many "if"s are replaced with "switch" statements or their big brother, ML-style pattern matching. Those make it more clear when conditions are mutually exclusive and help eliminate the error-prone simplification of boolean conditions in your head.