Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93521 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16825 invoked from network); 25 May 2016 17:50:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2016 17:50:07 -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:1654] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/87-14311-EC5E5475 for ; Wed, 25 May 2016 13:50:07 -0400 Message-ID: <11.87.14311.EC5E5475@pb1.pair.com> To: internals@lists.php.net References: <80.72.63510.DAFA5475@pb1.pair.com> <68fd73e7-ad19-3758-7b7a-6013cc26385f@gmail.com> Date: Wed, 25 May 2016 18:50:03 +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, Stanislav Malyshev wrote: >> wouldn't be inventing a new null, though, we'd be leaving the property >> undefined until it's initialised, which we already have support for >> (properties, and indeed all variables can be unset()). > > unset() now causes the property to disappear - as if it were never > defined. But you probably expect something different? So what isset() > would return for such property? What would is_null() return? What would > gettype() return? Why do you say "now"? unset() has done this for a long time, so far as I know. Thanks. -- Andrea Faulds https://ajf.me/