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

> for loop

The language matters a lot here too:

> For instance, map and filter typically involve pure functions, which are easier to reason about, and they avoid an entire class of off-by-one iterator bugs.

That's not how "for loops" work in many programming languages! Python being the most obvious, and by some measures the largest programming language of all.



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

Search: