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 13:04

(aBool) ? "Yes" :
   (anInt > 0) ? "Yes" :
      (anotherInt > 0 && anotherBool) ? "Yes" : "No";


Normally, I try to avoid nesting these things.

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