note
Tux
<p><i>But I've come to find ternaries to often be less quick/easy to read than something like:</i></p>
<p>I am with [BrowserUK] here, and I am happy to see you are using the "I find" instead of the way to often used "it is better to" (here in the monastery), as many idioms that are easy to parse by person A causes headaches to person B.</p>
<p>Personally I would try to avoid statement modifiers to any cost. I hate them. They make me read code exactly opposite of what the author meant.</p>
<p>I have no trouble reading (nested) ternary operations. Maybe too used to those from doing C.</p>
<p>You also doing java? Where <c>42 == $n</c> is quite often preferred over <c>$n == 42</c> because of <c>"string".equals ($n)</c> implies NULL checks.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-200365">
<br />
Enjoy, Have FUN! H.Merijn
</div></div>
1013548
1013951