Lazy list/range comprehensions
SiegeLord
none at none.com
Sun Oct 3 08:48:48 PDT 2010
bearophile Wrote:
> That's many times worse than the Python syntax. Array/range comprehensions are syntax sugar, their point is to give something clean and readable that helps chunking:
> http://en.wikipedia.org/wiki/Chunking_%28psychology%29
>
> Bye,
> bearophile
YMMW. Back when I was programming Python I found the array comprehension syntax unreadable, so I always used the map equivalent. It's helpful to realize that the definitions of "clean" and "readable" differ from person to person, and may in fact be the exact opposite between two people.
-SiegeLord
More information about the Digitalmars-d
mailing list