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

Nah, list, and even moreso, dict comprehensions, are one of my favorite python features. Any time you can avoid state-in-flight (e.g. mutating stuff inside a for loop) is a win in my book. Maybe if you aren't used to the syntax, there is some mental overhead, but that goes away after (at most) a few months of writing python.


Back in the days, I was seeing Python basically as the anti-Perl, where "There's More Than One Way of Doing Things" is the core mantra. Sure, a for loop is a blunt tool, but there's something to be said about not having too many different ways to approach things. Python as the new Basic.

Back then, that was a unique selling point of the language for me. These days, those are quite diffrent.




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

Search: