Re: Fix incorrect ternary '?' associativity for 7.0?

From: Date: Mon, 15 Dec 2014 06:50:57 +0000
Subject: Re: Fix incorrect ternary '?' associativity for 7.0?
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-79653@lists.php.net to get a copy of this message
On 12/14/2014 10:45 PM, Robert Williams wrote:
I strongly suspect far more code would be *fixed* if the ternary operator were changed to match what other languages do.
I appreciate your support, but either I am not understanding you, or your reasoning is unsound. If you have 'incorrectly' functioning code today that results in passing unit tests and a correctly functioning business. Then a sudden change to the behavior of this code would necessarily result in failing unit tests and an incorrectly functioning business. The code may be 'fixed' from a semantic point of view, but the logic would be broken from a required-output point of view relative to how it was operating previously, regardless of whether it was understood or not when it was written. -- Leon Sorokin

« previous php.internals (#79653) next »