Re: [RFC] Change the precedence of the concatenation operator

From: Date: Mon, 01 Apr 2019 21:37:33 +0000
Subject: Re: [RFC] Change the precedence of the concatenation operator
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-105031@lists.php.net to get a copy of this message
On 31/03/2019 14:50, Niklas Keller wrote:
An alternative to prevent mistakes in this regard is making this a compile error and requiring parenthesis.
If we're going to changes any precedence in the language, please please please can we look at the ternary operator associativity? I think making it non-associative, so that you have to use parentheses in "$a ? $b : $c ? $d : $e" would break very little code, in an obvious way, and help with a major pain point people have with the language. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#105031) next »