Patch #7770
closed
use unless in control structures where it improves readability
Added by Anonymous almost 14 years ago.
Updated 4 months ago.
Category:
Code cleanup/refactoring
Description
Use unless or until in control structures instead of if ! or while ! where it improves readability.
Files
I think if blah.present?
is easier to read than unless blah.blank?
or if !blah.blank?
, so we might switch to this in some cases you point out.
yes that does makes more sense indeed. I looked it up here , present? is internally defined as !blank?
- Status changed from New to Closed
- Assignee set to Go MAEDA
Also available in: Atom
PDF