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

Steven D'Aprano steve at pearwood.info
Sat May 11 08:00:34 CEST 2013


On 11/05/13 15:44, Random832 wrote:
> On 05/11/2013 01:36 AM, Steven D'Aprano wrote:
>> Not unless you guarantee that compile-time folding of string literals with '+' will be a language feature rather than an optional optimization.
>
> What makes you think that implicit concatenation being compile-time isn't optional?

http://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation

In the sense that there is no ISO standard for Python, *everything* is optional if Guido decrees that it is. But compile-time implicit concatenation is a documented language feature, not an implementation-dependent optimization.



-- 
Steven



More information about the Python-ideas mailing list