Hacker News new | past | comments | ask | show | jobs | submit login
Type inference debate: a C++ phenomenon? (atilaoncode.blog)
1 point by atilaneves on April 24, 2019 | hide | past | favorite | 2 comments



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: