in reply to Re: Ternary operators: a hinderance, not a help
in thread Ternary operators: a hinderance, not a help
Agreed, for that example.
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 Section
Meditations