Re: [Python-Dev] add new lambda syntax

2013-06-29 Thread Pynix Wang
http://aruld.info/lambda-expressions-in-java-8-adopts-c-style-syntax/ Lambda expressions in Java 8 adopts C# style syntax. On Sat, Jun 29, 2013 at 1:39 AM, Thomas Wouters wrote: > > > > On Fri, Jun 28, 2013 at 7:01 PM, Amaury Forgeot d'Arc > wrote: > >> 2013/6/28 Pynix Wang >> >>> I want use

Re: [Python-Dev] add new lambda syntax

2013-06-28 Thread Thomas Wouters
On Fri, Jun 28, 2013 at 7:01 PM, Amaury Forgeot d'Arc wrote: > 2013/6/28 Pynix Wang > >> I want use coffeescript function syntax to write python lambda expression >> so I modified the Grammar file. >> >> ``` >> atom: ('(' [yield_expr|testlist_comp|vararglist] ')' | >>'[' [testlist_comp] '

Re: [Python-Dev] add new lambda syntax

2013-06-28 Thread Amaury Forgeot d'Arc
2013/6/28 Pynix Wang > I want use coffeescript function syntax to write python lambda expression > so I modified the Grammar file. > > ``` > atom: ('(' [yield_expr|testlist_comp|vararglist] ')' | >'[' [testlist_comp] ']' | >'{' [dictorsetmaker] '}' | >NAME | NUMBER | STRIN

[Python-Dev] add new lambda syntax

2013-06-28 Thread Pynix Wang
I want use coffeescript function syntax to write python lambda expression so I modified the Grammar file. ``` atom: ('(' [yield_expr|testlist_comp|vararglist] ')' | '[' [testlist_comp] ']' | '{' [dictorsetmaker] '}' | NAME | NUMBER | STRING+ | '...' | 'None' | 'True' | 'False'