Re: [RFC][Vote] Typed Properties

From: Date: Wed, 25 May 2016 17:14:20 +0000
Subject: Re: [RFC][Vote] Typed Properties
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-93519@lists.php.net to get a copy of this message
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/

« previous php.internals (#93519) next »