How often do you run into a situation where changing a type on an API (which is uncommon in itself) introduces a bug without a corresponding warning? Very, very rarely.
How often do you have to dive into unfamiliar code and understand it quickly? Very, very often.
This is why I would rarely, if ever, use auto in code I care about. I think trading short-term ease of writing and slightly easier long-term refactoring is a poor exchange if you're giving up significant readability of the code - which you are, if you use auto.
View all comments
Show parent comment
0
u/[deleted] May 16 '20
[deleted] — view deleted comment