3 ms·
The auto keyword in C++ is great because it helps you avoid unintended type conversions in assignments. For that reason it should be used widely IMHO. The downs
by rerx 5y ago
The auto keyword in C++ is great because it helps you avoid unintended type conversions in assignments. For that reason it should be used widely IMHO. The downside is that it makes it slightly harder to read code outside of an IDE.
- ComputerGuru 5y ago> The downside is that it makes it slightly harder to read code outside of an IDE. If that’s how you feel about auto, wait until you see something like rust’s post-facto type inference.