Comment by voldacar
7 years ago
How does auto improve performance? Doesn't it just expand to whatever type a human would have manually had to put there in the first place?
7 years ago
How does auto improve performance? Doesn't it just expand to whatever type a human would have manually had to put there in the first place?
It allows automatic generic specialization in some cases by the compiler, as you don't have to do template-fu or use a nonspecific type or manually write multiple specializations.
Plus it usually makes the code cleaner by focusing on structure not types. As any construct, it can of course be abused.