|
|
|
|
|
by maxsilver
902 days ago
|
|
Maybe a decade of doing ruby has rotted my brain, but I love `unless`, and use it often. Yes, every `unless` could be rewritten with an `if` instead, certainly. But I like the implication of weight these keywords carry in English language. `unless` implies it's a minor condition, that the majority of runs should fall on the opposite side of the conditional, where as `if` does not -- both weights of the condition feel potentially equivilant-ish. |
|