[New-bugs-announce] [issue22754] Implicit String Literal Concatenation Is Evil
report at bugs.python.org
Tue Oct 28 19:04:40 CET 2014
New submission from Aaron Klish:
Implicit string literal concatenation where
should be a language syntax error - not a feature.
This creates a silent error whenever someone builds a list of strings and forgets a comma.
I can't think of any good reason why the language supports this. There are easier ways to build multi-line strings and there are already two explicit ways to do this on a single line.
It also violates the python principle:
"There should be one— and preferably only one —obvious way to do it"
I realize changing this might break someone's code. If that is a large concern, maybe the interpreter could support an option to enable/disable support for this.
title: Implicit String Literal Concatenation Is Evil
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce