3 ms·
I always write std::string etc. in those cases. It is consistent and quicker to read and there is not tangible benefit to using auto.
by tjoff 9y ago
I always write std::string etc. in those cases. It is consistent and quicker to read and there is not tangible benefit to using auto.
- joshuamorton 9y agoRight, but my point is that there's really no tangible benefit to writing the type at all. In a language with good type inference (Haskell, ml, modern python), the string literal is known to be a string, and you don't need to do any extra work.