[Ilugc] learning a new language

  • From: lug@xxxxxxxxxxxxxxxxxx (Chandrashekar Babu)
  • Date: Thu, 10 Feb 2011 17:39:34 +0530

Hi,

On 10/02/11 3:19 PM, Kenneth Gonsalves wrote:

lambda is not considered pythonic (by guido anyway)

Well, a proposal for implementing multi-line statements
in lambda was earlier rejected by Guido as the proposed
solutions were considered unpythonic. The reason being,
it was difficult to come up with a clean syntax for
representing multi-line blocks within an expression
without breaking Python's indentation rules.

lambda expressions as such was not mentioned by Guido
as unpythonic anywhere.

Infact, any python code that follows "The Zen of Python"
can be considered pythonic - and I don't see how lambda
expressions used in a comprehensible way break them.

Cheers,
Chandrashekar.

-- 
http://www.chandrashekar.info/
http://www.slashprog.com/


Other related posts: