Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87992 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59528 invoked from network); 1 Sep 2015 10:40:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2015 10:40:38 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:37156] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/A5-27722-2A085E55 for ; Tue, 01 Sep 2015 06:40:36 -0400 Received: (qmail 15350 invoked by uid 89); 1 Sep 2015 10:40:31 -0000 Received: by simscan 1.3.1 ppid: 15344, pid: 15347, t: 0.0922s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.8?) (lester@rainbowdigitalmedia.org.uk@86.189.147.72) by mail4.serversure.net with ESMTPA; 1 Sep 2015 10:40:31 -0000 To: internals@lists.php.net References: <55DD4269.4090402@gmail.com> <6348DFA7-04BD-41BB-A500-17A8A531B56C@craigfrancis.co.uk> <55DDA4C9.9040603@gmail.com> <3C69BF4B-52E6-4D04-8601-8D23DFCC538E@craigfrancis.co.uk> <55DDD60F.5090509@gmail.com> <8C74463E-DBA2-4015-8159-0B44D973387F@craigfrancis.co.uk> <55DE0907.6040904@gmail.com> <1F615BCD-1B9B-4C51-A210-869F1AA1F6E3@craigfrancis.co.uk> Message-ID: <55E5809F.5060604@lsces.co.uk> Date: Tue, 1 Sep 2015 11:40:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1F615BCD-1B9B-4C51-A210-869F1AA1F6E3@craigfrancis.co.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: lester@lsces.co.uk (Lester Caine) On 01/09/15 10:29, Craig Francis wrote: > Personally I still like the idea of an exists(), because I feel that is how many programmers treat and use the isset() function - simply because they do use NULL as a valid value, and either haven't read the manual, or forget the exception that is mentioned on line 1 (something I've done a couple of times). > > Although I realise it will take many years before anyone can start using it. For those of us starting from a base of SQL data, NULL has always been 'not set' and so a binary field can have three values 'yes', 'no' and 'don't know' so when that data is transferred into PHP it has always been natural to maintain that distinction so NULL === not set. That this data exists in an array in PHP is a natural development, but the object orientated/class approach would be that the data is loaded into an object and the values in that object are no longer considered as array elements, but discrete variables with all the overheads of getters and setters, so an 'isset' to check if the value HAS been converted from NULL to a live value is what is NOW the preferred style of working? While the older style of working would simply directly read the elements of the array? -- 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