in reply to Re: Short form (ternary) if else
in thread Short form (ternary) if else

The ternary operator exists in many programming languages and is often a stumbling block for many who encounter it for the first time

I must be decidedly odd - stop nodding at the back eyepopslikeamosquito - as I distinctly remember coming across the ternary operator in Perl and understanding it immediately. But at the same time thinking that I cannot see a use for it. Then, very soon afterwards I found a place where I could, and did use it...

For a while I overused it in many places where if...else would have been more appropriate. I think I have the right balance between these options now.