On 12/23/12 9:13 PM, Peter Alexander wrote:
On Sunday, 23 December 2012 at 22:41:56 UTC, Andrej Mitrovic wrote:
You say auto helps with refactoring. I say not using it helps with
catching bugs. It comes down to a question of what you value more,
your time while coding, or your time while debugging.
Or even just reading code, which is what programmers spend most of their
time doing.
When reading code, you want things to be both clear and succinct. With
long (or inexpressible) type names, using auto makes the code more
succinct, but for simple types like int, bool, or structs/classes with
short names, it's far more clear to just use the type name.
I don't buy the refactoring argument. Refactoring is rare.
In the words of Dwight Schrute: false.
Andrei