Actions
Patch #7770
closeduse unless in control structures where it improves readability
Start date:
2011-03-04
Due date:
% Done:
0%
Estimated time:
Description
Use unless or until in control structures instead of if ! or while ! where it improves readability.
Files
Updated by Jean-Baptiste Barth over 13 years ago
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.
Updated by Anonymous over 13 years ago
yes that does makes more sense indeed. I looked it up here , present? is internally defined as !blank?
Updated by Go MAEDA about 1 month ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
Fixed in r22987.
Actions