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

[Python-Dev] Call for defense of @decorators

[Python-Dev] Call for defense of @decorators [Python-Dev] Call for defense of @decoratorsSimon Percivall s.percivall at chello.se
Fri Aug 6 00:29:05 CEST 2004
+1 on @decorator style for being clear, unambiguous and useful
(and not bad to look at once you get used to it).

clear: * it's more visible and less messy than any of the
          before-/after-/behind-def style decorations;
        * it stands out. this is a good thing.

unambiguous: unlike the other viable prefix notation it makes 2.4
              code special.

useful: just having a special decoration syntax makes it useful.


decorations can make the behaviour of a function or class seem more
magic than otherwise, but at least the @decoration style makes it
more obvious that something is going on.

On 2004-08-05, at 18.36, Guido van Rossum wrote:
> [...] you might want to say something in public in defense of
> @decorators.

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