|
I
considered this but:
1.
It's not always clear (especially if the predicate is complex) that
the
"else" predicate is the opposite of
the "if".
2.
Worse - whenever you change the "if" predicate you have to
remember
to change the "else" too. Very
unmaintainable over time.
3.
It's not clear that the two are actually related to each
other.
4. You
have to consider side-effects (as you said - if the "if"
changes
"x", but also if the evaluation of
"x" has side effects).
|
Title: If/Else tag?
- RE: If/Else tag? Amos Shapira
- Re: RE: If/Else tag? Amos Shapira
- Re: RE: If/Else tag? Mikko Kurki-Suonio
