Why I hate lambdas (Re: Do any of you recommend Python as a first programming language?)

2008-03-23 Thread Aahz
In article [EMAIL PROTECTED], Jeff Schwab [EMAIL PROTECTED] wrote: Also, despite reassurances to the contrary, I still get the impression that there is a strong anti-lambda sentiment among the Python in crowd. Is it just a question of the word lambda, as opposed to perceived cleaner syntax?

Re: Why I hate lambdas (Re: Do any of you recommend Python as a first programming language?)

2008-03-23 Thread George Sakkis
On Mar 23, 12:24 pm, [EMAIL PROTECTED] (Aahz) wrote: The problem with lambda is that too often it results in clutter (this is a strictly made-up example off the top of my head for illustrative purposes rather than any real code, but I've seen plenty of code similar at various times):

Re: Why I hate lambdas (Re: Do any of you recommend Python as a first programming language?)

2008-03-23 Thread Steven D'Aprano
On Sun, 23 Mar 2008 09:24:35 -0700, Aahz wrote: The problem with lambda is that too often it results in clutter (this is a strictly made-up example off the top of my head for illustrative purposes rather than any real code, but I've seen plenty of code similar at various times):

Re: Why I hate lambdas (Re: Do any of you recommend Python as a first programming language?)

2008-03-23 Thread Roy Smith
Also, despite reassurances to the contrary, I still get the impression that there is a strong anti-lambda sentiment among the Python in crowd. Is it just a question of the word lambda, as opposed to perceived cleaner syntax? There is a fundamental disharmony in how functions and other

Re: Why I hate lambdas (Re: Do any of you recommend Python as a first programming language?)

2008-03-23 Thread Fuzzyman
On Mar 23, 4:24 pm, [EMAIL PROTECTED] (Aahz) wrote: In article [EMAIL PROTECTED], Jeff Schwab [EMAIL PROTECTED] wrote: Also, despite reassurances to the contrary, I still get the impression that there is a strong anti-lambda sentiment among the Python in crowd. Is it just a question of

Re: Why I hate lambdas (Re: Do any of you recommend Python as a first programming language?)

2008-03-23 Thread Steven D'Aprano
On Sun, 23 Mar 2008 13:51:34 -0400, Roy Smith wrote: On the other hand, when I do: def torture(): woman.putInChair() cushion.poke() rack.turn() I've also done two things. First, I've created a function object (i.e. a lambda body), and I've also bound the name torture to

Re: Why I hate lambdas (Re: Do any of you recommend Python as a first programming language?)

2008-03-23 Thread Roy Smith
Steven D'Aprano [EMAIL PROTECTED] wrote: On Sun, 23 Mar 2008 13:51:34 -0400, Roy Smith wrote: On the other hand, when I do: def torture(): woman.putInChair() cushion.poke() rack.turn() I've also done two things. First, I've created a function object (i.e. a

Re: Why I hate lambdas (Re: Do any of you recommend Python as a first programming language?)

2008-03-23 Thread Steven D'Aprano
On Sun, 23 Mar 2008 22:36:35 -0400, Roy Smith wrote: I've also done two things. First, I've created a function object (i.e. a lambda body), and I've also bound the name torture to that function object, in much the same way I did with the list. But, it's different. The function object