in reply to Re^3: next unless condition
in thread next unless condition
In what way does it not convey intent?
or is a boolean operator and implies an expression. Using if as a statement modifier is altogether different than forcing the role of implied if on the or operator.
In what way is it unclear?
By not conveying intent. Using or in the role of an if does not convey the intent of the code so the code is unclear.
How does it scale better? If you need to change the expression, why can't you change the entire line?
Completely replacing a chunk of code in order to make a small change to it means that the replaced code didn't scale at all!
The "It" in "It also scales better" was referencing if compared to unless. Using unless tends quickly to get into double negative land making it harder to think about complicated expressions and harder to maintain code using them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: next unless condition
by dsheroh (Monsignor) on Apr 01, 2016 at 07:43 UTC | |
by RonW (Parson) on Apr 04, 2016 at 19:52 UTC | |
by afoken (Chancellor) on Apr 04, 2016 at 20:49 UTC | |
by dsheroh (Monsignor) on Apr 05, 2016 at 08:37 UTC | |
by hippo (Archbishop) on Apr 05, 2016 at 09:09 UTC | |
by RonW (Parson) on Apr 05, 2016 at 18:37 UTC | |
by Athanasius (Archbishop) on Apr 06, 2016 at 07:57 UTC | |
| |
by Anonymous Monk on Apr 04, 2016 at 20:20 UTC | |
|
Re^5: next unless condition (if unless)
by Anonymous Monk on Apr 01, 2016 at 08:34 UTC |