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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php