"Thomas Singer" <[EMAIL PROTECTED]> wrote:
> Please add an option, how to layout the ternary operator:
>
> condition ? trueValue: falseValue;
>
> condition ? trueValue
>            : falseValue;
>
> condition
>     ? trueValue
>     : falseValue;
>
> or something similar.

I would love to see it done one way (the first, in my case) if it can all fit
on one line and another way (the third, in my case) if it can't. E.g.:

  return ( x > 0 ) ? x : 0;

  return ( fluxCapacitor.getRethreadRatio() == 0.0 )
    ? fluxCapacitor.getIdealRethreadRatio()
    : fluxCapacitor.getSubatomicRethreadRatio();




Erik



_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to