3 ms·
I don't think that `auto` is what you hate; what you hate is operator overloading. It's impossible to tell what all those operators are doing because operators
by theseoafs 11y ago
I don't think that `auto` is what you hate; what you hate is operator overloading.
It's impossible to tell what all those operators are doing because operators are endlessly overloadable in C++. If you make all type declarations manually then that's still only part of the issue solved: the next step is that you have to go look at the class to find out what the overloaded operators do.
Auto without overloading has none of those same faults.
- slavik81 11y agoI don't find operators to be any different than regular functions. Usually I can tell what they do based on their name. Occasionally I do need to look at the class to see what they do. Vector math in C++ would really suck without operator overloading, so I'm glad it exists.