There's an awful lot of TheDamian's opinion in PBP that I disagree with, but in this case he's absolutely spot on.
Clarification: What I meant by the above was that readable beats clever every time. I didn't mean to suggest that min() should be used to find the minimum of two values. I'd use the ternary operator just as BrowserUK suggested.
In reply to Re: Clever vs. Readable
by FunkyMonk
in thread Clever vs. Readable
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |