Call for signatories for J2
Alex Martelli
aleaxit at yahoo.com
Thu Aug 26 17:08:58 EDT 2004
Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:
> aleaxit at yahoo.com (Alex Martelli) writes:
> > I think a keyword that's ALREADY a keyword has been almost ignored,
> > though people occasionally did mention it re decorators: 'as'. I'd love
> > to see 'as' used as THE decorator keyword. personally I'd prefer
> > 'def as classmethod foo(...):'
> > followed by
>
> How do you handle the other proposed uses of decorators, e.g. type
> declarations?
>
> def foo as int (a as string, b as int):
> ...
>
> seems pretty awful to me.
Type declarations make me cringe, but if I *had* to have them then 'b as
int' is the best syntax I could imagine for them offhand.
Alex
More information about the Python-list
mailing list