Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79625 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83612 invoked from network); 13 Dec 2014 23:20:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Dec 2014 23:20:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:58971] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/B0-14066-2C9CC845 for ; Sat, 13 Dec 2014 18:20:36 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 5A2D910C03F; Sat, 13 Dec 2014 23:20:31 +0000 (GMT) Date: Sat, 13 Dec 2014 23:20:31 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Leon Sorokin cc: internals@lists.php.net In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Fix incorrect ternary '?' associativity for 7.0? From: derick@php.net (Derick Rethans) On Sat, 13 Dec 2014, Leon Sorokin wrote: > I was wondering if 7.0 could be the version to fix the long-standing > incorrect ternary associativity bug in PHP [1]. It is not a bug, as the issue's status says: "Not a bug". > This seems especially worthy of reconsideration since the Null > Coalesce RFC has been accepted and merged [2] with the correct > associativity [3]. It's another one of those bonkers changes. It changes behaviour of already existing syntax. This sort of meddling with the language is difficult to detect, and there is little value in fixing it. Don't piss off users for purety. I suggest you read this too: http://derickrethans.nl/bc-dont-be-evil.html > The major version change seems like the only time to get this done in PHP. Only time it is *allowed*; that doesn't it should be done. cheers, Derick