Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
leh0n
on Aug 19, 2012
|
parent
|
context
|
favorite
| on:
Programming Languages Have Social Mores Not Idioms
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.
haileys
on Aug 19, 2012
[–]
for is defined in terms of each, so you can still use for on a 'custom object'
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: