[Python-ideas] Multi-statement anonymous functions

musicdenotation at gmail.com musicdenotation at gmail.com
Mon Jan 13 07:48:29 CET 2014


Proposed syntaxes:
> let function(*args,**kwargs):
>     ...body...
> function2(...args...):
>     ...body...
> in:
>     [statements]

> do:
>     [statements]
> where [function declarations in the same form as above]

Inspired by Haskell and Julia.

This has the advantage that declared functions aren't binded to names outside their context.


More information about the Python-ideas mailing list