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/047427.html below:

[Python-Dev] Re: Call for defense of @decorators

[Python-Dev] Re: Call for defense of @decorators [Python-Dev] Re: Call for defense of @decoratorsGuido van Rossum guido at python.org
Mon Aug 9 17:39:45 CEST 2004
> that the decorator can fundamentally alter the meaning of the def
> statement is not at all clear -- and it ought to be!  By contrast,
> those proposed syntaxes which have the decorators in the def
> statement (somewhere between the def and the colon) do not suffer
> this opacity.

I think that's too strict a rule.  You're asking for something to be
intuitively clear from looking at the syntax alone, without having
learned it before.  All I'm asking for is that it's easy to remember
once explained.  Very few things beyond 2+2 are intuitively clear,
even in Python; almost everything is easy to explain and remember
though, and I think that @decorators fall in that category, too.

(And of course, to anyone who's programmed in Java 1.5 before,
@decorators *will* be intuitively clear.  But that's not the main
motivation.)

--Guido van Rossum (home page: http://www.python.org/~guido/)
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