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
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
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
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
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
, 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