3 ms·
The "auto" keyword is a life saver when dealing with templates/pointers etc in C++. It is a real time waster figuring out the correct syntax for declaring your
by codesushi42 7y ago
The "auto" keyword is a life saver when dealing with templates/pointers etc in C++. It is a real time waster figuring out the correct syntax for declaring your identifier, when you know perfectly the type's semantics. This is probably more of a flaw of C++ than an argument for type inference though.
Not once have I wished for type inference in Java for instance. Just learn to use the damn IDE and its code completion feature.