![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Ternary vs. Sort vs. Maxby GrandFather (Saint) |
on Aug 10, 2015 at 09:30 UTC ( #1137986=note: print w/replies, xml ) | Need Help?? |
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.
Premature optimization is the root of all job security
In Section
Meditations
|
|