2 comments
Comment actions Permalink


Dani wrote:

Would be posible that SmartIntroducePlugin works also with extract method
refactoring??


I've been thinking about this already myself but couldn't think of a logic that
is able to 'guess' which statements you'd most likely want extract into a method.

Do you have any suggestions/use cases which you'd find to be useful?

A compromise would be to just make it help creating 'computation methods' for
non-void expressions, i.e. select an expression (like for the other refactorings) that
should be turned into a method call. Would this be useful?

Sascha


0
Comment actions Permalink

On Tue, 20 Jan 2004 19:12:40 +0100, Sascha Weinreuter
<sascha.weinreuter@NOSPAM-cit.de> wrote:

>

Dani wrote:

>> Would be posible that SmartIntroducePlugin works also with extract
>> method
>> refactoring??
>

I've been thinking about this already myself but couldn't think of a
logic that
is able to 'guess' which statements you'd most likely want extract into
a method.

>

Do you have any suggestions/use cases which you'd find to be useful?

>

A compromise would be to just make it help creating 'computation
methods' for
non-void expressions, i.e. select an expression (like for the other
refactorings) that
should be turned into a method call. Would this be useful?


That was what i was thinking on. I have found myself trying to use it in
code like:

anObject.do( a + b]]> );

so the expresions should be:
b
a + b
anObject.do( a + b);

Many thx, Daniel


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

0

Please sign in to leave a comment.