News for hackers. Stuff that matters.
Re:Python 3.6.0 released by dragonwriter on Friday December 23, 2016 @10:32PM (#13248422)
> This is the clear and explicit way to express your intent.

I disagree. For the (common) circumstances where genexp's are appropriate, they are also the most clear and explicit way of expressing intent (explicit loops express the mechanism, not the intent.)

For cases where you need a list object, list comprehension are the most direct expression of intent.

There's cases where explicit looping is the most clear expression of intent; usually, this would be where complex logic is needed within each loop iteration.

There are no comments on this comment yet.