Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72860 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51518 invoked from network); 28 Feb 2014 11:28:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2014 11:28:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.204 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.204 mail4.serversure.net Linux 2.6 Received: from [217.147.176.204] ([217.147.176.204:42376] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/63-28957-2C270135 for ; Fri, 28 Feb 2014 06:28:04 -0500 Received: (qmail 25827 invoked by uid 89); 28 Feb 2014 11:27:59 -0000 Received: by simscan 1.3.1 ppid: 25820, pid: 25823, t: 0.0591s scanners: attach: 1.3.1 clamav: 0.96/m:52 Received: from unknown (HELO linux-dev4.lsces.org.uk) (lester@rainbowdigitalmedia.org.uk@81.138.11.136) by mail4.serversure.net with ESMTPA; 28 Feb 2014 11:27:59 -0000 Message-ID: <531073DB.2060303@lsces.co.uk> Date: Fri, 28 Feb 2014 11:32:43 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24 MIME-Version: 1.0 To: internals@lists.php.net References: <52D865C7.4070009@sugarcrm.com> <531044A8.8050002@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: lester@lsces.co.uk (Lester Caine) Chris Wright wrote: > YMMV of course, but for me allowing null members just > makes the callee's life more difficult and does not gain anything. Practical example ... Object is a genealogical record. The initial tree has blank parent and grandparent objects, with each subsequent layer adding more 'null' entries. Now it may be that the preferred method of working is to create 'empty' objects for each of these, but with the number of entries doubling with each generation, 'null' is the fastest option since it does not require any processing at create time. A null entry just flags an empty branch and one only has to track those branches where there are populated objects. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk