comprehensions was Re: Switch statements again
mwilson at the-wire.com
Fri Jan 17 18:15:50 CET 2003
In article <3E27433C.EA3186C0 at alcyone.com>,
Erik Max Francis <max at alcyone.com> wrote:
>Jack Diederich wrote:
>> TMTOWTDI aside, I find filter and map much easier to pick out when
>> through code.
>> The actual action is hidden at the end, we're doing a filter()
>> Less of a good reason, but map() and filter() exist in other languages
>> so they are more broadly recognizable even to newbies.
>I would hope that an experienced programmer would read the _whole_ line
>before he makes up his mind about exactly what the code does.
In panic debugging (e.g. after a production run has
crapped out in the night) you wind up reading huge amounts
of code very quickly to find a possible source of the bug.
True, you're more interested in what a line of code
*doesn't* do; that admits partial reading.
More information about the Python-list