As a return type, I've only used auto in coding exercises, to burn it in my memory, but not yet in production code.
On the other hand, using auto in variable declarations is pretty cool. First I was shocked a bit by the feeling of losing information, but once I started thinking about the reasons why developers like Herb Sutter or Scott Meyers advocate that we should almost always use auto (in variable declarations) my heart and mind softened a lot.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
As a return type, I've only used
auto
in coding exercises, to burn it in my memory, but not yet in production code.On the other hand, using
auto
in variable declarations is pretty cool. First I was shocked a bit by the feeling of losing information, but once I started thinking about the reasons why developers like Herb Sutter or Scott Meyers advocate that we should almost always useauto
(in variable declarations) my heart and mind softened a lot.