3 ms·
> I am so shocked at how many people use `auto` in C++. I agree with you! But: > I can not think of a worse thing to do to your code in terms of readability a
by dataflow 2y ago
> I am so shocked at how many people use `auto` in C++.
I agree with you! But:
> I can not think of a worse thing to do to your code in terms of readability and future maintainability.
Well, I definitely can. Using macros is one ;)
> I am trying to learn a new library right now with light documentation which means reading the code, and between typedefs, auto
I disagree with you on the typedefs. They're much better than auto. Auto doesn't provide any type checking, it works whatever the type is. Typedef tell you what the expected type actually is.