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

If your language has a `for` keyword, I would just say use the `for` keyword.


But why?

The language I use has various flavours of `for`. It also has various flavours of map and fold. It also has recursion.

They each do different things. Those differences are meaningful and useful. Why would you limit yourself to just using `for`?


It depends. It isn't the case for Ruby, for example.




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

Search: