Python syntax in Lisp and Scheme
Hartmann Schaffer
hs at heaven.nirvananet
Wed Oct 15 22:53:51 EDT 2003
In article <yuudnZUSvvC4oBGiU-KYjA at comcast.com>,
"Terry Reedy" <tjreedy at udel.edu> writes:
> ...
>> >> [Mind you, Python's lambda is next to useless anyway]
>> >
>> > It is quite useful for its designed purpose, which is to
> abbreviate
>> > and place inline short one-use function definitions of the
> following
>> > pattern: def _(*params): return <expression using params>.
>>
>> the last version of python i used was 1.5.x, and then the absence of
>> closures made the anonymous functions pretty useless
>
> The default-parameter hack which substituted for closures made lambdas
> then more awkward, but I believe they were mostly just as useful as
> today as callbacks and as HOF args. In any case, closures were
> introduced over two years ago in 2.1, and your original statement says
> 'is', not 'used to be some years ago'.
maybe you should keep track of who said what. this "original
statement was by somebody else
hs
--
ceterum censeo SCO esse delendam
More information about the Python-list
mailing list