As I state in the OP, however, my point about readability and clarity is concerned more with more complex constructs, of which that example is not one :)
Vertical space savings are all well and good, but not at the expense of readability. Chained/cascading ternaries quickly lose readability, especially when combined with other code elements.
-- Foxcub
#include www.liquidfusion.org.uk
In reply to Re^2: Ternary operators: a hinderance, not a help
by Tanalis
in thread Ternary operators: a hinderance, not a help
by Tanalis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |