But if the condition is complex, putting a ! in front of the whole thing means more parens if (!( ...real stuff )) { ... and I don't like the extra layer with only one char outside them! Reversing the Real Stuff would mean changing ands to ors and inverting whatever, and is easy to mess up. Plus I'd rather express it the way that's closest to the problem domain.
In reply to Re: Re: if/unless and chaining
by John M. Dlugosz
in thread if/unless and chaining
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |