3 ms·
It's a matter of code readability. "when" and "unless" are expressions too, but they look the best when they're used instead of "if" for single-branched conditi
by TeMPOraL 10y ago
It's a matter of code readability. "when" and "unless" are expressions too, but they look the best when they're used instead of "if" for single-branched conditionals when you don't care about return value.
- arethuza 10y agoYes - from what I recall it definitely helped to make things clearer to use "if" and "when" appropriately.