| This refactoring business, I see it going two ways, there are probably more. 1. you refactor, you change the type declaration in one place, auto handles the boring work of replacing the characters throughout your project. 2. you refactor, you change the type definition in one place, auto will handle replacing all the instances in your project, hell, it might even compile afterwards. I believe you are describing 1. I find that easy enough to do with 'Sed' or IDE refactoring tools. 2, is more subtle and the new behaviour could now be worthy of scrutiny throughout the project. I find it difficult then to 'Grep' or IDE search through the project for all instances reliably when auto is in use. It is much easier for me with spelled out types. I would trade the benefit of auto in 1) for the safety of spelled out types in 2) every single time. |
In other words, you concentrate your review on the original and new type, instead of the usages.