[Python-ideas] Implicit string literal concatenation considered harmful?

Random832 random832 at fastmail.us
Sat May 11 07:11:44 CEST 2013


On 05/11/2013 01:05 AM, Andrew Barnert wrote:
> How is this any better than + in the same position? It's harder to notice, and longer (remember that the only reason you're doing this is that you can't fit your strings into 80 cols).
>
> By the way, is it just a coincidence that almost all of the people sticking up for keeping or replacing implicit concatenation instead of just scrapping it are using % formatting in their examples?
You just answered your own question. The reason it's better than + in 
the same position, for those people, is that it would have higher 
precedence than %.



More information about the Python-ideas mailing list