A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/047387.html below:

[Python-Dev] Decorators: vertical bar syntax

[Python-Dev] Decorators: vertical bar syntax [Python-Dev] Decorators: vertical bar syntaxNeil Hodgson nhodgson at bigpond.net.au
Mon Aug 9 04:37:05 CEST 2004
Greg Ewing:
> > @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.

   A motivation for this was that one of the examples

@accepts(int,int)
@returns(float)
def bar(low,high):

   which separates related information too much for me. If decorators need
to decorate parameters, they are more likely to be understood correctly by a
reader if the decorations are next to the parameters.

   Neil

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4