Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79633 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20948 invoked from network); 14 Dec 2014 12:26:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2014 12:26:15 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.245 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.245 imap11-3.ox.privateemail.com Received: from [198.187.29.245] ([198.187.29.245:45313] helo=imap11-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/70-17520-5E18D845 for ; Sun, 14 Dec 2014 07:26:14 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 399C38800DB; Sun, 14 Dec 2014 07:26:11 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gmX-wgrz7tmQ; Sun, 14 Dec 2014 07:26:11 -0500 (EST) Received: from [137.50.174.225] (oa-edu-174-225.wireless.abdn.ac.uk [137.50.174.225]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id DB19D8800DA; Sun, 14 Dec 2014 07:26:10 -0500 (EST) References: <548D494B.8010901@gmail.com> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: Cc: PHP internals X-Mailer: iPhone Mail (12B440) Date: Sun, 14 Dec 2014 12:26:09 +0000 To: George Bond Subject: Re: [PHP-DEV] Fix incorrect ternary '?' associativity for 7.0? From: ajf@ajf.me (Andrea Faulds) > On 14 Dec 2014, at 12:01, George Bond wrot= e: >=20 > 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. Hey George, That sounds like a good approach, actually, although I'm not sure about late= r fixing the associativity. If we make it non-associative this does break th= ings, but very loudly rather than changing code's behaviour. I think we shou= ld do this. Thanks. -- Andrea Faulds http://ajf.me/=