Decorators
Paul Prescod <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
> Mark Hahn wrote: Why? > > I always thought decorators were a kludge added on to a > language when the original syntax was found lacking. Can't we > avoid them in Python by getting it right from the beginning? You might as well say classes are a kludge added when the language syntax is lacking. There is already a proposal for a decorator in Prothon, isn't there? Weren't commands supposed to be indicated by a decorator? Consider the examples in PEP 318 http://www.python.org/peps/pep-0318.html#examples and these mailing list posts: http://mail.python.org/pipermail/python-dev/2004-February/042739.html and http://mail.python.org/pipermail/python-dev/2004-June/045688.html and http://mail.python.org/pipermail/python-dev/2004-June/045700.html http://prothon.org/wiki?pagename=DecoratorFeature Paul Prescod