Hacker News new | past | comments | ask | show | jobs | submit login

Map-style iteration carries more semantic information than a C-style index based loop. An index based loop might be doing anything with the data being iterated over. When you do collection.map, already at first glance you get an idea about what the code is doing.



Yep - and nobody cares. Write clean code instead. Much harder than simply changing the looping style.




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

Search: