[Python-Dev] Decorators: vertical bar syntax
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon Aug 9 04:16:45 CEST 2004
> For example, if there is later a need or desire to annotate function
> arguments individually as well as functions, or individual
> statements or expressions, then @ is a better choice. For example
>
> @RemoteCall
> def Ignite(engine @Remote, environment @Copy, thrust @Float):
Nooooo.....
If @decorator stays in, I fervently hope it won't be taken as a
precedent for using @ for other things all over the place. Otherwise
we really *will* end up with a language that resembles Perl.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list