Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
leh0n
· 14y ago · 0 comments
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.
Comments
[–]
charliesome
14y ago
for is defined in terms of each, so you can still use for on a 'custom object'