Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79653 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99845 invoked from network); 15 Dec 2014 06:51:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2014 06:51:03 -0000 X-Host-Fingerprint: 24.12.158.105 unknown Received: from [24.12.158.105] ([24.12.158.105:27325] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/21-23603-5D48E845 for ; Mon, 15 Dec 2014 01:51:02 -0500 To: internals@lists.php.net,Robert Williams Message-ID: <548E84D1.9030401@gmail.com> Date: Mon, 15 Dec 2014 00:50:57 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 CC: "internals@lists.php.net" References: <548D494B.8010901@gmail.com> <548DC988.6030108@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 24.12.158.105 Subject: Re: [PHP-DEV] Fix incorrect ternary '?' associativity for 7.0? From: leeoniya@gmail.com (Leon Sorokin) 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