Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85485 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3477 invoked from network); 26 Mar 2015 22:32:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2015 22:32:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.172 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.172 mail-wi0-f172.google.com Received: from [209.85.212.172] ([209.85.212.172:33342] helo=mail-wi0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/A5-00585-7E884155 for ; Thu, 26 Mar 2015 17:32:08 -0500 Received: by wixm2 with SMTP id m2so21955282wix.0 for ; Thu, 26 Mar 2015 15:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to :message-id; bh=Ahw2erImiSIuv5zZT8tNDSUVCGb88Ym8dtpzddXPmwQ=; b=s6Fjw71HZCAaJdVwzmQqjcbUiAhjr9H9B8yqnS2tFylT/zwmRx7XNMlb6IDpVL2t8B V7csrywaRsR8Ucte8K1KhiM2EBms2evaASFg8IrE6UasptGWznKsRIAqWeWh7ZrtbNB/ lx/1SL5hvhUMVW3OVS/mGYaIexJ1K2V0YfDb7e3ya0mCyN5QR+wbvHgzWl5y89LbGKGW agtNdgHyuH1PQ+yzXn52kKiwJhK7eyzJclYYNHFbdlXgwmTrAXcB2ZE4iVMSgu79gRT8 LBzFst1AVDK5lh4WnZkk+bXCoMiZ36FFQZ9nMcSoMiHX8ze99QhcL0jKXAPZspDqN/5r AZdA== X-Received: by 10.194.48.74 with SMTP id j10mr32969304wjn.38.1427409124971; Thu, 26 Mar 2015 15:32:04 -0700 (PDT) Received: from [192.168.0.2] (cpc68956-brig15-2-0-cust215.3-3.cable.virginm.net. [82.6.24.216]) by mx.google.com with ESMTPSA id fy2sm795236wic.15.2015.03.26.15.32.03 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Mar 2015 15:32:04 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Thu, 26 Mar 2015 22:31:00 +0000 To: PHP Internals List Message-ID: Subject: Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please? From: rowan.collins@gmail.com (Rowan Collins) On 26 March 2015 20:54:12 GMT, Michael Morris wrote: >Per PHPsadness... > >http://phpsadness.com/sad/30 > >Since 7 is allowed to have BC breaks this would be the time to fix >this. > >I'll let someone with more seniority actually write this up - but >please, >please fix this - it's a very long standing annoyance. I used to think this was a major nuisance, but recently thought about it and decided I've never once wanted to do this - the result is really ugly code whatever the associativity. What I've always been annoyed by is the *precedence* of the operator - having to add brackets to mix it with string concatenation, etc - which it turns out to is the same in all sorts of languages. Regards, -- Rowan Collins [IMSoP]