Is this a good use for lambda

Fredrik Lundh fredrik at pythonware.com
Mon Dec 20 07:54:39 EST 2004


Simo Melenius wrote:

>> use something short, like "f".  hopefully, a single character won't overload
>> your brain.
>
> I've heard some brain can tackle even Java's overly verbose syntax

I find that hard to believe.  Are you sure they're not relying on eclipse, or some
other body part?

> Like someone pointed, using _ is a good convention for throwaways. The
> fact that such a convention exist just emphasizes that it _is_ an
> issue from which people try to sway away.

The drawback is that _ is commonly used for translations:

    http://docs.python.org/lib/node317.html

(using "f" for some function is of course well-established also outside programming,
as your nearest dictionary or encyclopedia will tell you.  "x" and "i" are other letters
for which programming use often matches established meanings...)

</F> 






More information about the Python-list mailing list