Why functional Python matters

Courageous jkraska at san.rr.com
Tue Apr 15 22:42:29 EDT 2003


>  Lambdas are an excellent tool for obfuscation, that's for sure.  You're
>right not to recommend overusing them in production code.  Generally, I try
>to limit myself to the simplest expressions, on the order of "x and y" or
>"result[index]", and translate to fully fledged functions for larger
>expressions.  It's just easier to maintain.

Anonymous functions are occasionally useful, as in Java's anonymous
class expressions, really used as a poor man's lambda of sorts. I've
seen this overused, though, that's for sure.

C//





More information about the Python-list mailing list