News for hackers. Stuff that matters.
Re:How do we read code? by dmckeon on Wednesday December 19, 2012 @03:06PM (#4944488)
How about formatting the ternary thusly:

  value = test
    ? (some_value * multiple)
    : false_value;
Re:How do we read code? by Symmetry on Wednesday December 19, 2012 @03:22PM (#4944590)
To match, it would have to be:

  value = test ? some_value * multiple
          : test2 ? second_value
          : false_value;
Which, you know, isn't that bad. But it looks really weird since people don't expect you to use ternary that way, while multi-part if statements are fairly normal.