[Python-Dev] Decorators: vertical bar syntax (original) (raw)
Greg Ewing greg at cosc.canterbury.ac.nz
Mon Aug 9 04:16:45 CEST 2004
- Previous message: [Python-Dev] Decorators: vertical bar syntax
- Next message: [Python-Dev] Decorators: vertical bar syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 +--------------------------------------+
- Previous message: [Python-Dev] Decorators: vertical bar syntax
- Next message: [Python-Dev] Decorators: vertical bar syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]