[Python-ideas] Syntax for curried functions

Sturla Molden sturla at molden.no
Mon Mar 2 18:06:55 CET 2009


On 3/2/2009 10:22 AM, Weeble wrote:
> Would this be crazy? Make this:
> 
> def spam(a,b,c)(d,e,f):
>     [BODY]
> 
> a synonym for:
> 
> def spam(a,b,c):
>     def spam2(d,e,f):
>         [BODY]
>     return spam2

This is atrocious.





More information about the Python-ideas mailing list