Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32302 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81596 invoked by uid 1010); 12 Sep 2007 18:25:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81581 invoked from network); 12 Sep 2007 18:25:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2007 18:25:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 85.10.196.195 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 85.10.196.195 serveforce1.backendmedia.com Linux 2.6 Received: from [85.10.196.195] ([85.10.196.195:42491] helo=serveforce1.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/90-11738-43F28E64 for ; Wed, 12 Sep 2007 14:25:57 -0400 Received: from soitgoes.local (77-57-14-92.dclient.hispeed.ch [77.57.14.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by serveforce1.backendmedia.com (Postfix) with ESMTP id 4CDDD181CFAB; Wed, 12 Sep 2007 20:32:46 +0200 (CEST) Message-ID: <46E82F23.2000506@pooteeweet.org> Date: Wed, 12 Sep 2007 20:25:39 +0200 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Andrew Shearer CC: Marcus Boerger , Robert Cummings , internals@lists.php.net 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> <421016323.20070912101332@marcus-boerger.de> <17c19be0709121053u617071beq8d420926f60db46f@mail.gmail.com> In-Reply-To: <17c19be0709121053u617071beq8d420926f60db46f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-backendmedia-com-MailScanner-Information: Please contact the ISP for more information X-backendmedia-com-MailScanner: Found to be clean X-backendmedia-com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.228, required 6, AWL 0.13, RDNS_DYNAMIC 0.10) X-backendmedia-com-MailScanner-From: mls@pooteeweet.org X-Spam-Status: No Subject: Re: [PHP-DEV] [PATCH] array_get() From: mls@pooteeweet.org (Lukas Kahwe Smith) Andrew Shearer wrote: > Meanwhile, array_get() provides the most-needed functionality while avoiding > the issues that prevented ifsetor's acceptance. Aside from lack of BC hacks what is the issue? I remember some fussing about the name, but I find this a joke of an argument. You cant get much clearer a name than ifsetor(). > There's a backward compatibility problem with ifsetor: its special syntax > means that there's no way to write a pure-PHP userland version of it. The > effect is that there's no upgrade path for applications that have to > straddle both old and new versions of PHP, and practical usefulness of > ifsetor would be delayed for years after release. I use ifsetor() type functionality on a daily basis. As such I would appreciate it if it would be an operator and would make its way not only into php 6, but also php 5.3. Marcus's half solution is not a solution to what I need. Andrew's solution gets close enough to solve my real world needs. Now if I could just see the slightest bit if a real argument against ifsetor(), I might even vote for array_get() (not sure if I appreciate the name though). regards, Lukas