Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-18 Thread Nick Coghlan
Talin wrote: > [EMAIL PROTECTED] wrote: > >>talin> ... whereas with 'given' you can't be certain when to stop >>talin> parsing the argument list. >> >> So require parens around the arglist: >> >>(x*y given (x, y)) >> >> Skip >> >> > I would not be opposed to mandating the parens, and

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-18 Thread Talin
[EMAIL PROTECTED] wrote: >talin> ... whereas with 'given' you can't be certain when to stop >talin> parsing the argument list. > >So require parens around the arglist: > >(x*y given (x, y)) > >Skip > > I would not be opposed to mandating the parens, and its an easy enough change to

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-18 Thread skip
talin> ... whereas with 'given' you can't be certain when to stop talin> parsing the argument list. So require parens around the arglist: (x*y given (x, y)) Skip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-17 Thread Talin
All right, the patch is up on SF. Sorry for the delay, I accidentally left my powerbook about an hour's drive away from home, and had to drive to go get it this morning :) To those who were asking what advantage the new syntax has - well, from a technical perspective there are none, since the u

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-17 Thread skip
Steve> It appears to hang together, but I'm not sure I see how it Steve> overcomes objections to lambda by replacing it with another Steve> keyword. Well, it does replace it with a word which has meaning in common English. FWIW, I would require the parens around the arguments and avo

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-16 Thread Steve Holden
Talin wrote: > First off, let me apologize for bringing up a topic that I am sure that > everyone is sick of: Lambda. > > I broached this subject to a couple of members of this list privately, > and I got wise feedback on my suggestions which basically amounted to > "don't waste your time." >

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-16 Thread Fredrik Lundh
Paul Moore wrote: > > > I definately don't want to start a flame war, although I suspect I already > > > have :/ > > > > I think most about everything has already been said wrt lambda already, > > but I guess we could have a little war on spelling issues ;-) > > Agreed, but credit to Talin for act

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-16 Thread Fredrik Lundh
Paul Moore wrote: > > I think most about everything has already been said wrt lambda already, > > but I guess we could have a little war on spelling issues ;-) > > Agreed, but credit to Talin for actually implementing his suggestion. > And it's nice to see that the AST makes this sort of experimen

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-16 Thread Nick Coghlan
Paul Moore wrote: > On 2/16/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >> Talin wrote: >>> I definately don't want to start a flame war, although I suspect I already >>> have :/ >> I think most about everything has already been said wrt lambda already, >> but I guess we could have a little war on

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-16 Thread Barry Warsaw
On Feb 16, 2006, at 2:05 AM, Talin wrote: > > Anyway, if anyone wants to play around with the patch, it is rather > small - a couple of lines in Grammar, and a small new function in > ast.c, > plus a few mods to other functions to get them to call it. The context > diff is less than two printed

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-16 Thread Paul Moore
On 2/16/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Talin wrote: > > I definately don't want to start a flame war, although I suspect I already > > have :/ > > I think most about everything has already been said wrt lambda already, > but I guess we could have a little war on spelling issues ;-)

Re: [Python-Dev] Adventures with ASTs - Inline Lambda

2006-02-16 Thread Fredrik Lundh
Talin wrote: > So the general notion is similar to the various proposals on the Wiki - > an inline keyword which serves the function of lambda. I chose the > keyword "given" because it reminds me of math textbooks, e.g. "given x, > solve for y". And I like the idea of syntactical structures that m