I have acquired the habit of declaring reused variables outside loops from having worked in Other Languages, like so:
NSString *lcword;
for( NSString *word in tokens )
{
lcword = [ word lowercaseString ];
...
}
Is it reasonable to do this in Objective-C also, or is the compiler smart enough to make it unnecessary?