[issue6469] Function definition expressions feature

2009-07-13 Thread Chris Perkins
Chris Perkins chrisperkin...@gmail.com added the comment: Details and discussion: http://groups.google.com/group/python-ideas/browse_frm/thread/a2bb1ff3992d9c01 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6469

[issue6469] Function definition expressions feature

2009-07-12 Thread Chris Perkins
New submission from Chris Perkins chrisperkin...@gmail.com: Proposed feature - function definition expressions, superficially similar to Ruby blocks. To be proposed on Python-ideas list. -- files: blocks.patch keywords: patch messages: 90455 nosy: grammati severity: normal status: open

[issue6469] Function definition expressions feature

2009-07-12 Thread Chris Perkins
Chris Perkins chrisperkin...@gmail.com added the comment: Forgot to mention - the patch is very much incomplete. It breaks tests, contains none of the work that would need to be done in the ast package, etc. This is just a proof-of-concept

Re: PEP 309 (Partial Function Application) Idea

2005-03-14 Thread Chris Perkins
with expressions like foo(x, __), can we. OK, now I really give up on the whole idea! Chris Perkins -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 309 (Partial Function Application) Idea

2005-03-12 Thread Chris Perkins
Scott David Daniels wrote: Chris Perkins wrote: Random idea of the day: How about having syntax support for currying/partial function application, like this: func(..., a, b) func(a, ..., b) func(a, b, ...) That is: 1) Make an Ellipsis literal legal syntax in an argument list. 2) Have the compiler

PEP 309 (Partial Function Application) Idea

2005-03-11 Thread Chris Perkins
, but I do like the way it looks. The ... really stands out as saying something is omitted here. Chris Perkins -- http://mail.python.org/mailman/listinfo/python-list