Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9203 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41235 invoked by uid 1010); 15 Apr 2004 18:09:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41199 invoked from network); 15 Apr 2004 18:09:43 -0000 Received: from unknown (HELO tomts22-srv.bellnexxia.net) (209.226.175.184) by pb1.pair.com with SMTP; 15 Apr 2004 18:09:43 -0000 Received: from caedmon.net ([65.94.84.53]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040415180930.RLP7304.tomts22-srv.bellnexxia.net@caedmon.net>; Thu, 15 Apr 2004 14:09:30 -0400 Message-ID: <407ECFDA.40808@caedmon.net> Date: Thu, 15 Apr 2004 14:09:30 -0400 User-Agent: Mozilla Thunderbird 0.5 (X11/20040306) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sascha Schumann CC: internals@lists.php.net References: <5.1.0.14.0.20040415111759.00b77c18@mail.ionzoft.com> <200404151201.30381.ilia@prohost.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Construct Request From: sean@caedmon.net (Sean Coates) Is there a good reason to NOT implement this? If not, I'm +1 on that (if I carry ANY weight at all (-: ) BC isn't an issue, and it would be a very useful feature, IMHO.. S Sascha Schumann wrote: > That is basically the same idea once proposed as extending > the ternary operator (credit goes to GCC and its C extension). > > $bar ? : $baz; > > If $bar evaluates to true, the expression evaluates to $bar > or to 0, respectively. > > - Sascha >