There's more than one way to do things | |
PerlMonks |
Re: Ternary operators: a hinderance, not a helpby phaylon (Curate) |
on Aug 09, 2005 at 15:34 UTC ( [id://482257]=note: print w/replies, xml ) | Need Help?? |
I just use it when I find it is more readable. Sometimes I have things like
which I find more readable than a
I think it gives the possibility to keep together what should stand together. I also often found, that those real life scenarios you speak of are simpler to solve with the ternary operator, than with fully written conditionals. But in the end, it's surely a question of personal preference :) Ordinary morality is for ordinary people. -- Aleister Crowley
In Section
Meditations
|
|