in reply to Re^2: Clever vs. Readable
in thread Clever vs. Readable
Two return a max result. I'll leave you to guess which one is correct.
The ternary variant suggested elsewhere suffers somewhat from the same exposure to simple coding errors, especially if the value calculations are not trivial or the size of the set of values being tested is increased.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Clever vs. Readable
by Anonymous Monk on Aug 10, 2008 at 12:35 UTC |