Alternative to multi-line lambdas: Assign-anywhere def statements

Ethan Furman ethan at stoneleaf.us
Wed Feb 11 11:52:44 EST 2015


On 02/11/2015 05:04 AM, Albert van der Horst wrote:

> That's the reason why my ideal Python doesn't attach a name to a lambda denotation:
> 
> x -> x**2

Hmmm.  So now let's say you have a few dozen of these types of functions, and you want to talk about the twenty-sixth
one with a peer... are you going to say, "Hey, look at the twenty-sixth one -- I think it has a bug." or something more
like, "Hey, I think there's a bug in the hyp sin function." ?

People use names, names are good.

Python uses names, because names are good.

--
~Ethan~

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20150211/b7f3a416/attachment.sig>


More information about the Python-list mailing list