Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79657 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41814 invoked from network); 15 Dec 2014 16:57:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2014 16:57:00 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; 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:41814] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/62-16076-CD21F845 for ; Mon, 15 Dec 2014 11:57:00 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 16B8B10C032; Mon, 15 Dec 2014 16:56:57 +0000 (GMT) Date: Mon, 15 Dec 2014 16:56:56 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: George Bond cc: PHP internals In-Reply-To: Message-ID: References: <548D494B.8010901@gmail.com> 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 Sun, 14 Dec 2014, George Bond wrote: > If you wanted an upgrade path that was not Evil (in the sense of not > introducing subtle and hard-to-diagnose bugs), could you not change > the operator to be *un*associative in PHP7? That would effectively > just make concrete the discouragement/deprecation that's already in > the documentation, and would produce irritating but very visible > errors for anyone still actually using this functionality, as well as > making them alter their code in a forward-compatible way. Then if you > want to think really long term, plan to implement the 'correct' > associativity in the *next* major version. As long as this unassociativity turns it into a hard syntax error (ie, "php -l" will catch it out), I am not against this. cheers, Derick