The max version has the huge advantage that it actually says what the intent of the code is. The other variants require at least some pattern recognition or, worse, some thought to interpret.
In reply to Re: Ternary vs. Sort vs. Max
by GrandFather
in thread Ternary vs. Sort vs. Max
by QM
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |