Purely emotional perspective
Jeff Shannon
jeff at ccvcorp.com
Mon Aug 9 19:18:34 EDT 2004
Paramjit Oberoi wrote:
>I have to say though, that @ decorators are starting to grow on me
>even though I was strongly against that syntax at first.
>
>
Personally, I'm seeing more and more usefulness in decorators as the
discussion progresses, and I'm seeing more reasons why the most obvious
alternatives to the currently proposed syntax are not optimal. But I
still find the current syntax to be *extremely* (painfully)
uncomfortable -- this sort of prefix syntax is unlike anything else *I*
can think of in Python.
I'm particularly worried about the proposals of using this as metadata
for things like author -- that seems to be begging for almost every
function to use half a dozen or more decorators (accepts, returns,
author, design date, last revision date, etc., etc.) which will (IMO)
seriously degrade code readability. (This syntax is okay for one or two
decorators, but more than that quickly becomes obfuscatory.)
Jeff Shannon
Technician/Programmer
Credit International
More information about the Python-list
mailing list