[Python-Dev] Re: Re: Call for defense of @decorators (original) (raw)
Christian Tismer tismer at stackless.com
Sun Aug 8 18:48:56 CEST 2004
- Previous message: [Python-Dev] Re: Re: Call for defense of @decorators
- Next message: [Python-Dev] Re: Re: Call for defense of @decorators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis wrote:
Christian Tismer wrote:
Ok, I dislike special prefix chars at all, in a language that doesn't have this concept elsewhere (despite strings of course, but their prefixes are just regular chars), Lists, tuples, and dictionaries are also introduced with non-letter characters. Furthermore, nested expressions use the same prefix char that lists use. # introduces comments.
I agree on the "#". Not so for lists, tuples and dicts. These are constructs in their own right, containing something, which is again made of normal Python objects.
But what we here have is an escape symbol, which expresses that the token following it is special and has special semantics, and the reach of this special symbol then even extends over its own line, but modifies how the next def statement is understood. This is remarkably different from being usual.
I should not have talked about prefix chars, but escape sequences, which fits much better.
As somebody already mentioned (Jim Fulton I think) this feels like mixing two different languages into each other.
all the best -- chris
Christian Tismer :^) <mailto:tismer at stackless.com> Mission Impossible 5oftware : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9a : Starship http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 89 09 53 34 home +49 30 802 86 56 mobile +49 173 24 18 776 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
- Previous message: [Python-Dev] Re: Re: Call for defense of @decorators
- Next message: [Python-Dev] Re: Re: Call for defense of @decorators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]