elements of decorator syntax suggestions
Michele Simionato
michele.simionato at gmail.com
Sun Aug 8 00:41:08 EDT 2004
Erik Max Francis <max at alcyone.com> wrote in message news:<41155C33.37EEB397 at alcyone.com>...
> Tim Peters wrote:
>
> > 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.
1. @ is already used in Leo and ipython, "|" is not.
2. "|" stands visually more than other characters.
3. Many people have an irrational repulsion for "@" and "$".
Michele Simionato
More information about the Python-list
mailing list