New submission from Aaron Klish: Implicit string literal concatenation where "string1" "string2" becomes "string1string2" 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. ---------- messages: 230163 nosy: aklish priority: normal severity: normal status: open title: Implicit String Literal Concatenation Is Evil type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22754> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com