Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11147 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72372 invoked by uid 1010); 13 Jul 2004 03:26:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72275 invoked from network); 13 Jul 2004 03:26:41 -0000 Received: from unknown (HELO amsfep17-int.chello.nl) (213.46.243.15) by pb1.pair.com with SMTP; 13 Jul 2004 03:26:41 -0000 Received: from [192.168.0.2] (really [213.93.244.198]) by amsfep17-int.chello.nl (InterMail vM.6.00.05.02 201-2115-109-103-20031105) with ESMTP id <20040713032641.CWMK27969.amsfep17-int.chello.nl@[192.168.0.2]> for ; Tue, 13 Jul 2004 05:26:41 +0200 Message-ID: <40F35670.9020909@iamjochem.com> Date: Tue, 13 Jul 2004 05:26:40 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-gb, en-us, en, nl MIME-Version: 1.0 CC: internals@lists.php.net References: <5.1.0.14.0.20040707203931.02fa6200@mail.ionzoft.com> <40ED64A0.7050305@cschneid.com> <20040708151952.92187.qmail@pb1.pair.com> <20040708215205.23281.qmail@pb1.pair.com> <20040708222005.4329.qmail@pb1.pair.com> <20040708233326.73283.qmail@pb1.pair.com> In-Reply-To: X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] what happened to that new isset() like language From: jochem@iamjochem.com (Jochem Maas) Adam Maccabee Trachtenberg wrote: > On Thu, 8 Jul 2004, Marc Richards wrote: > > >>Are you saying PHP will never introduce an operator that doesn't already >>exist in a large number of other languages? > > > I certainly hope not. (Well, I guess === and !=== are exceptions to > this statement.) > > >>Compound Ternary operator: >> >>$a = $b ?: $c; > > > You realize that ternary means it takes three arguments? It has > nothing to do with question marks and colons. Your new "compound > ternary" operator is really a "binary" operator. maybe call it the Collapsed Ternary (the first two arguments being collapse into 1 because they are 'identical'*). document it under the tenary docs, that way you can effectively introduce the std concept first before showing the the PHP handy extra for all those blasted checks. *sorry, my grasp of technical terminology is abysmal. > > -adam >