Plea for simpler decorator syntax, in addition to pie-shaped syntax
4 Aug
2004
4 Aug
'04
7:52 a.m.
IMO, the most common uses of decorators will be to define properties, and class and static methods. IMO, these uses would be better served by a simpler syntax: def classmethod foo(cls, ...): ... This simplified syntax only allows names to specify decorators. It could allow multiple names, although I'm not sure it should, I find this *far* more readable and obvious than any of the other syntaxs I've seen propsed. Those applications that *need* decorator arguments could use the more complex pie-shaped notation. Jim -- Jim Fulton mailto:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org
7176
Age (days ago)
7177
Last active (days ago)
10 comments
10 participants
participants (10)
-
Bill Janssen
-
David Eppstein
-
Fred L. Drake, Jr.
-
Greg Ewing
-
Guido van Rossum
-
Gustavo Niemeyer
-
Jim Fulton
-
Neil Hodgson
-
Skip Montanaro
-
Tim Peters