[Python-ideas] Multi-statement anonymous functions

Amber Yust amber.yust at gmail.com
Mon Jan 13 08:11:49 CET 2014


Can't you already essentially accomplish the same thing by simply nesting
function definitions within another function?
On Sun Jan 12 2014 at 10:49:10 PM, <musicdenotation at gmail.com> wrote:

> 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.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140113/0f7ae04a/attachment.html>


More information about the Python-ideas mailing list