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 11:19


hax
? my
: anus
? once
: more

Name: Anonymous 2010-11-27 11:29


$a = ($cond == 1)
  ? 'hax'
  : 'anus'
;

Name: Anonymous 2010-11-27 11:30

...continued


$a = ($cond == 1)
  ? ($cond2 == 1)
    ? 'fag'
    : 'hax'
  : 'anus'
;

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