Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The auto keyword in C++ is great because it helps you avoid unintended type conversions in assignments. For that reason it should be used widely IMHO. The downside is that it makes it slightly harder to read code outside of an IDE.


> The downside is that it makes it slightly harder to read code outside of an IDE.

If that’s how you feel about auto, wait until you see something like rust’s post-facto type inference.




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

Search: