PEP318

Arthur ajsiegel at optonline.com
Thu Aug 12 10:12:57 EDT 2004


On Thu, 12 Aug 2004 09:00:56 +0200, Josef Dalcolmo <dalcolmo at vh-s.de>
wrote:

>Hello,
>
>I just would like to add my vote against using '@' in the Python language.
>

I must say that after days of waffling, and I think an honest effort
to accept where things were going, I woke this morning hating
@decorator.

The existing syntax for this kind of transformation is, in fact,
exactly what one would expect:

foo=staticmathed(foo).

That is the universal langauge for transformations.  And when we try
to explain to anybody what it is that @decorator means, we go back to
the pseudo code that is in fact the existing syntax.

I guess I am mystified what it is that is perceived to have been
gained ... by moving magic outside the function block to the top of a
function in lieu of expressive code outside the function block at the
bottom of the function. Something is created, and then transofrmed -
in the language of transformation that transcends the implementation
detail of what programming language is doing the work.

Art



More information about the Python-list mailing list