laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need 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
In reply to Re^2: Ternary operators: a hinderance, not a help
by Tanalis
|
|