2 comments

[ 4.7 ms ] story [ 13.7 ms ] thread
I think auto is great but there are certain times when its better to be clear what exactly the return type is
Sure - my personal rule #0 of programming is "use your head", the longer form being "understand the trade-offs and make an informed decision". I'm not advocating for always using auto, but I am wondering out loud why there seem to be so many people in the C++ community that are against it in principle.