-1000
I thought the whole point of refactoring was to make code
more readable? If this is the kind of code you want, why
aren't you programming in C++ or APL?
I'd like to see the OPPOSITE refactoring, which we ALWAYS
use whenever we see one of those darned ? operators in
our legacy code.
> > From: "Alain Ravet" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Date: Wed, 20 Mar 2002 14:26:57 +0100
> > Subject: [Eap-features] new refactoring : if.. else to (..? return
> x:return y)
> >
> > Request : new refactoring
> >
> >
> > From :
> >
> > if (__phoneFax == null){
> > return EMPTY_STRING;
> > }
> > else {
> > return __phoneFax;
> > }
> >
> >
> > to :
> > return (__phoneFax == null ? EMPTY_STRING: __phoneFax ) ;
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features