Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8979 invoked from network); 25 May 2016 17:14:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2016 17:14:24 -0000 X-Host-Fingerprint: 137.50.159.218 oa-edu-159-218.wireless.abdn.ac.uk Received: from [137.50.159.218] ([137.50.159.218:16598] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/D5-14311-F6DD5475 for ; Wed, 25 May 2016 13:14:24 -0400 Message-ID: <2E.D5.14311.F6DD5475@pb1.pair.com> To: internals@lists.php.net References: <7B.12.14311.F79C5475@pb1.pair.com> Date: Wed, 25 May 2016 18:14:20 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 137.50.159.218 Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: ajf@ajf.me (Andrea Faulds) Hi Niklas, Niklas Keller wrote: >> >> There is a difference between not set and no meaningful value. >> > > In PHP, there's no such difference for properties. And I think we should be > consistent with the existing behavior here. That's not quite true, unset properties produce a notice when accessed, properties set to null do not, and it is possible to check whether a property is set or not versus just null. Likewise with variables, array members, etc. Thanks. -- Andrea Faulds https://ajf.me/