While playing around with C#, I stumbled upon a neat trick that works in all C-based languages. I realized that there is a very clean way to express a multi-clause if statement by composing ternary conditional operators like this.
Add your comment
Voters For This Link (20)
-
rick -
igoro -
aclarke -
yardena -
matt -
Kevin_D -
trevor -
jaux -
wp73875 -
gerfalcon -
Volume4 -
mhnagaoka -
eaj1 -
tgautier -
nlazarov -
kieronwilkinson -
qagwaai -
evensonic@gmail.com -
thinkingserious -
bhaskarvk