in reply to
assigning the maximum of two numbers
Edit: Sorry, I misread the question entirely.
I would probably go with the ternary for readability in most cases, but if you're doing this in a critical part of your application, it looks like sort/shift is optimized well. Neat.
Electric dreams (yikes!)
2001: A Space Odyssey
None of the above, please specify
Results (291 votes),