Re: Introducing "Array Of" RFC
| From: | Lester Caine | Date: | Fri, 28 Feb 2014 11:32:43 +0000 |
| Subject: | Re: Introducing "Array Of" RFC | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72860@lists.php.net to get a copy of this message | ||
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