Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Introduce new variable
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dango
Junior Member

20 Posts

Posted - Jan 21 2007 :  10:02:46 AM  Show Profile  Reply with Quote
When I am refactoring code I often would like to take an expression and assign it to a variable.

if (a && b)
{
foo(a && b);
}

I would highlight a && b pick a new refactoring: introduce variable
and add in the dialog bool isAFilbert. Code changes to:

bool isAFilbert = a && b;
if (isAFilbert)
{
foo(isAFilbert);
}

I think sometimes it would also be useful to do the opposite: Expand variable expression.

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 22 2007 :  07:13:59 AM  Show Profile  Reply with Quote
Introducing a new variable like this is in our list of things to do, when we find the time

case=1492

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 07 2014 :  10:07:27 AM  Show Profile  Reply with Quote
case=1492 is implemented in build 2052
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000