3 ms·
Thanks for answering those two. The reason I'm not happy with "auto" is that as a programmer you'll end up hunting down types in source. Even more so if you in
by toemetoch 14y ago
Thanks for answering those two.
The reason I'm not happy with "auto" is that as a programmer you'll end up hunting down types in source. Even more so if you inherit code from someone else. So we'll add them in comment as mental note instead of properly declaring them?
You call it messiness (visual clutter in the article) but in my experience it'll promote laziness and pitfalls for beginners. It's just a matter of time before you'll see questions like 'why does the compiler infer the wrong type here?' on StackOverflow.
Re-reading my post I see it's easily interpreted as arrogant. That wasn't my intention.