Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9214 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66985 invoked by uid 1010); 15 Apr 2004 19:36:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66961 invoked from network); 15 Apr 2004 19:36:48 -0000 Received: from unknown (HELO coyote.horde.org) (199.175.137.146) by pb1.pair.com with SMTP; 15 Apr 2004 19:36:48 -0000 Received: from marina.horde.org (146-115-123-243.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com [146.115.123.243]) by coyote.horde.org (Postfix) with ESMTP id 6D08E34D95 for ; Thu, 15 Apr 2004 12:36:48 -0700 (PDT) Received: by marina.horde.org (Postfix, from userid 33) id 495E07F096; Thu, 15 Apr 2004 15:36:47 -0400 (EDT) Received: from cmb-nat1.smarterliving.net (cmb-nat1.smarterliving.net [65.112.23.131]) by marina.horde.org (Horde) with HTTP for ; Thu, 15 Apr 2004 15:36:47 -0400 Message-ID: <20040415153647.5gyo5co840ck80gw@marina.horde.org> Date: Thu, 15 Apr 2004 15:36:47 -0400 To: internals@lists.php.net References: <5.1.0.14.0.20040415111759.00b77c18@mail.ionzoft.com> <20040415153725.56389.qmail@pb1.pair.com> <407EE2D9.6060000@php.net> In-Reply-To: <407EE2D9.6060000@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs Subject: Re: [PHP-DEV] Re: Construct Request From: chuck@horde.org (Chuck Hagenbuch) Quoting Hartmut Holzgraefe : > actualy in this special case i have been whishing for an operator for ages, > maybe a modification of the good old ternary: > > $foo = ?$bar : "default"; > > or > > $foo ?= "default"; If this were added, wouldn't it make sense to use the convention already adopted by perl? $foo |= 'default'; -chuck -- "Regard my poor demoralized mule!" - Juan Valdez