HN2new | past | comments | ask | show | jobs | submitlogin

C++ Novice Question: Why are for loops bad? (as mentioned in the article). What's the alternative?


You should use standard algorithms whenever possible. Sean Parent talked about it at Going Native. He was able to transform a horrible set of for loops he found in Google's code into a few lines of modern C++ using standard algorithms. But he _is_ Sean Parent!




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

Search: