Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

?:

Name: Anonymous 2010-11-27 11:12

How does /prog/ format their nested conditionals? I've been doing this:

foo ? bar :
baz ? quux :
quuux;

What do you find most attractive?

Name: Anonymous 2010-11-27 15:56


anus = hurf() ? 0
     : durf() ? 1
     : herp() ? 2
     : derp() ? 3
     :          4;


Conditions in the first column, results in the second column.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List