[Python-ideas] Implicit string literal concatenation considered harmful?
Serhiy Storchaka
storchaka at gmail.com
Fri May 17 10:03:16 CEST 2013
16.05.13 20:26, Bruce Leban написав(ла):
> I like the \ idea because it's clearly syntax and not an operator, but
> the fact that it doesn't work with comments is annoying since one reason
> to break a string is to insert comments. I don't like that spaces after
> the \ are not allowed because trailing spaces are invisible to me but
> not to the parser. So what if the rule for trailing \ was changed to:
>
> The \ continuation character may be followed by white space and a
> comment. If a comment is present, there must be at least one
> whitespace character between the \ and the comment.
It's not needed. You could just use the "+" operator if you want to
insert comments. Or verbose mode of regexpes. And it works right now.
More information about the Python-ideas
mailing list