elements of decorator syntax suggestions

Jarek Zgoda jzgoda at gazeta.usun.pl
Sat Aug 7 18:59:52 EDT 2004


Erik Max Francis <max at alcyone.com> pisze:

>> Overloading a unary prefix operator is out.  As Anthony said, vertical
>> bar seemed to be the leading contender on python-dev Friday.  You can
>> find tedious arguments there about most of the others that would go
>> for you.
> 
> Why is | superior to @?  | already has a meaning in Python, and it has
> nothing to do with decorators ... at least @ has the virtue of currently
> being unused in the language, and having the precedent of being used for
> a similar feature in Java.

Sure, use all characters, that are still not used. Fine. I propose "^".
If this fails, please consider "~" and "`".

Oh, and ";" is still not used in Python, what about some special meaning
for that one?

-- 
Jarek Zgoda
http://jpa.berlios.de/



More information about the Python-list mailing list