Re: Let-expressions

2009-04-03 Thread sloisel
Thanks for the quick replies. I didn't want statements in my expressions, just let-expressions. That's okay, it was just a question. Sébastien Loisel On Apr 3, 7:20 pm, Chris Rebert wrote: > On Fri, Apr 3, 2009 at 4:18 PM, Terry Reedy wrote: > > sloisel wrote: > &

Re: Let-expressions

2009-04-03 Thread Chris Rebert
On Fri, Apr 3, 2009 at 4:18 PM, Terry Reedy wrote: > sloisel wrote: >> >> Dear All, >> >> I searched this group and found that there have been discussions about >> introducing a let expression to the language so that you can define >> local variables in a lambda. I.e., something like f=lambda x: l

Re: Let-expressions

2009-04-03 Thread Terry Reedy
sloisel wrote: Dear All, I searched this group and found that there have been discussions about introducing a let expression to the language so that you can define local variables in a lambda. I.e., something like f=lambda x: let y=x^2 in sin(y). (My syntax is unpythonic, but I hope you get it).

Let-expressions

2009-04-03 Thread sloisel
Dear All, I searched this group and found that there have been discussions about introducing a let expression to the language so that you can define local variables in a lambda. I.e., something like f=lambda x: let y=x^2 in sin(y). (My syntax is unpythonic, but I hope you get it). Can someone tel