miniblog.
← Back to all posts
Wilfred Hughes
Jan 21, 2016 at 08:39
When should you use auto in C++?
https://herbsutter.com/2013/08/12/gotw-94-solution-aaa-style-almost-always-auto/
argues that it's safer, more readable and more consistent.
GotW #94 Solution: AAA Style (Almost Always Auto)
Toward correct-by-default, efficient-by-default, and pitfall-free-by-default variable declarations, using “AAA style”… where “triple-A” is both a mnemonic and an evaluation …