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

> Whether you use a for loop, a list comprehension or a map is just nitpicking, it has almost zero effect on maintainability.

It makes a big difference in languages where for loops are subject to off by one errors. Also many libraries have algorithms for what you do with the list comprehension. If you have one function ApplySomeAlgorithmToEntireList(list) that is a lot clearer than trying to find what you are doing in the body of the for/list comprehension.



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

Search: