[Python-Dev] Extended Function syntax

Samuele Pedroni pedronis@bluewin.ch
Fri, 31 Jan 2003 00:05:51 +0100


From: "Raymond Hettinger" <python@rcn.com>
To: "Greg Ewing" <greg@cosc.canterbury.ac.nz>; <python-dev@python.org>
Sent: Thursday, January 30, 2003 11:34 PM
Subject: Re: [Python-Dev] Extended Function syntax


> From: "Greg Ewing" <greg@cosc.canterbury.ac.nz>
> > > How about
> > >
> > >   foo = property:
> > >       ...
> >
> > That looks quite nice to me, if it can be parsed...
>
> +1     This is cleanest of ideas presented so far.

you mean the syntax? (because the sematics is quite up in the air).

do you see it like

foo = lambda: ...

because I could sympathize with tha line of reasoning?

still one is a statement and the other is an expression and that could be
confusing.