Re: [RFC Discussion] Typed Properties
| From: | Pierre Joye | Date: | Wed, 30 Mar 2016 03:57:43 +0000 |
| Subject: | Re: [RFC Discussion] Typed Properties | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92004@lists.php.net to get a copy of this message | ||
On Mar 30, 2016 10:17 AM, "Joe Watkins" <pthreads@pthreads.org> wrote:
>
> Morning Dmitry,
>
> > 1) static typed properties are prohibited. why?
>
> Feels like that's a separate feature, static properties are as good as
> makes no difference, global variables.
>
> Instance properties, the engine has good control over their manipulation,
> for static properties it doesn't, it's not impossible, but feels separate.
Internally different but from users perspective it is the same (a class
property). It would be nice to support that at the same time to avoid
confusion.