Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32282 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47006 invoked by uid 1010); 12 Sep 2007 08:13:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46991 invoked from network); 12 Sep 2007 08:13:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2007 08:13:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:46468] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/FB-57702-0BF97E64 for ; Wed, 12 Sep 2007 04:13:37 -0400 Received: from dhcp-172-28-204-149.zrh.corp.google.com (unknown [193.142.125.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 5F7841B35F7; Wed, 12 Sep 2007 10:13:33 +0200 (CEST) Date: Wed, 12 Sep 2007 10:13:32 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <421016323.20070912101332@marcus-boerger.de> To: Robert Cummings CC: Andrew Shearer , internals@lists.php.net In-Reply-To: <1189531022.30041.88.camel@blobule> References: <27DA5A7A-276C-480F-A75C-7F64BB38316B@ashearer.com> <142319111.20070911112759@marcus-boerger.de> <1262949578.20070911172112@marcus-boerger.de> <17c19be0709110933m537df263pfae99322b8ae0b32@mail.gmail.com> <702402878.20070911185402@marcus-boerger.de> <1189531022.30041.88.camel@blobule> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] array_get() From: helly@php.net (Marcus Boerger) Hello Robert, yeah ifsetor if much better than the @-?: combination. But for 5.3 that would be all we could do. For 6 and in the long run we might do a real ifsetor. If ever we could come to a consensus... and no i don't really like to restart discussions on ifsetor at this point. marcus Tuesday, September 11, 2007, 7:17:02 PM, you wrote: > On Tue, 2007-09-11 at 18:54 +0200, Marcus Boerger wrote: >> Hello Andrew, >> >> how about @?: style? >> >> Like: $val = $myarray[$key] ?: $default; > Did you mean like: > @$val = $myarray[$key] ?: $default; > Because that's an expensive assignment since it will hit the error > handler when the index is not assigned. I thought the ifsetor system was > going to throttle undefined index notices for the left operand. > Cheers, > Rob. > -- > ........................................................... > SwarmBuy.com - http://www.swarmbuy.com > Leveraging the buying power of the masses! > ........................................................... Best regards, Marcus