Hacker News new | ask | show | jobs
by leh0n 5046 days ago
The reason to use each instead of for loops is for code consistency. Also there are custom objects which require you to use each to iterate.
1 comments

for is defined in terms of each, so you can still use for on a 'custom object'