PEP 312 - Making lambdas implicit worries me, surely it's just the name 'lambda' that is bad...
Alex Martelli
aleax at aleax.it
Mon Mar 3 11:28:53 EST 2003
Alexander Schmolck wrote:
> Alex Martelli <aleax at aleax.it> writes:
>
>> Jack Diederich wrote:
>> ...
>> > I'm a big functional programming fan, but most python user's aren't.
>> ...
>> > filter() and only two dozen [very simple!] list comprehensions.
>>
>> So I guess your "functional programming" enthusiasm doesn't come
>> from Haskell
>
> I don't think that follows. Python's list comprehensions are different --
> they pollute the namespace.
True -- though I, personally, don't find it hard to pick a name for
the control variable in a list comprehension that doesn't overwrite
any other variable of interest, I think this counts as a (minor) wart.
But I still can't imagine a Haskell list-comprehension fan eschewing
LC's in Python just because of this wart.
Alex
More information about the Python-list
mailing list