parse-time optimizations
piet at cs.uu.nl
piet at cs.uu.nl
Wed May 30 08:31:36 EDT 2001
>>>>> jcm <grumble at usa.net> (J) writes:
J> Yea, I guess it's just wishful thinking. Something about
J> string-literal juxtaposition doesn't sit right with me. I guess I'm
J> used to optimizing compilers, which would transform "a" + "b" into
J> "ab" (and 1 + 2 into 3, etc). Having a different syntax specifically
J> for string-literal concatenation seems odd (it seems less odd in C
J> only because strings are so klunky).
"a" "b" should not be considered an optimization, it is just one of the
many ways string literals can be written.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list