[Python-Dev] Re: Call for defense of @decorators
Roman Suzi
rnd at onego.ru
Fri Aug 13 19:04:34 CEST 2004
On Thu, 12 Aug 2004, Nick Coghlan wrote:
> predef staticmethod
> predef author(name='yarrB')
> predef returns([int])
> def plugh(self):
> return 42
>
>
>To me, 'predef' seems to shout "Look, I'm telling you something about
>the 'def' that you are about to encounter in a line or two."
This is too much repetition to please programmers ;)
They like to write things ONCE. This is exactly the reason why
all this decorator hell raised:
def X:
...
X = decor(X)
uses X three times...
>Ah well, guess I'll go back to being a lurker on the deco issue. . .
>
>Cheers,
>Nick.
>
>
Sincerely yours, Roman Suzi
--
rnd at onego.ru =\= My AI powered by GNU/Linux RedHat 7.3
More information about the Python-Dev
mailing list