Re: [RFC][Vote] Typed Properties

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

« previous php.internals (#93521) next »