Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105032 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56684 invoked from network); 2 Apr 2019 12:18:55 -0000 Received: from unknown (HELO v-smtpout1.han.skanova.net) (81.236.60.154) by pb1.pair.com with SMTP; 2 Apr 2019 12:18:55 -0000 Received: from [192.168.7.8] ([213.64.245.126]) by cmsmtp with ESMTPA id BFUWhufHYSq0xBFUWhbhSg; Tue, 02 Apr 2019 11:14:00 +0200 To: Rowan Collins References: Cc: PHP internals Message-ID: Date: Tue, 2 Apr 2019 11:14:00 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-CMAE-Envelope: MS4wfFp22NOP5IhDHvakQgC2LxAzRA7BnWVgNejDuZZE37rtu7qZ4hyDKjUar6D5bFBqMBKa0wnvgmguOWinjwZTGObD9mh2ctLdPw0Iqn5LF3DByPA41/us T/W38vpCI1W6G+k+uFsTvJd2sgaZ3Xoj+iy9Hx5po7NsedA6SHv0U0PFyliZMphiQrbpsN9KMzt5zlY5nU1+2KIcKcv88H91UJHRm29cZtR4mlVY/gWqBKPv Subject: Re: [PHP-DEV] [RFC] Change the precedence of the concatenation operator From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) Den 2019-04-01 kl. 23:37, skrev Rowan Collins: > 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, > I recall that this was up for discussion a few years back for PHP 7.0, see: https://marc.info/?l=php-internals&m=141851165925502 r//Björn L