On Thu, 2002-02-07 at 18:56, Erik Hanson wrote:
> 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();
+1
I'd like that too. I prefer using a similar thing for method headers:
public void shortMethod(int num) throws Exception {
...
}
public void longMethod(int xCoordinate, int yCoordinate,
double foo, MyClass bar)
throws ArrayIndexOutOfBoundsException, OtherException
{
...
}
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features