Re: Static properties
| From: | Edin Kadribasic | Date: | Thu, 27 Apr 2006 14:35:39 +0000 |
| Subject: | Re: Static properties | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22993@lists.php.net to get a copy of this message | ||
Hi Marcus,
Marcus Boerger wrote:
> There was no endless discussion like we to often do on the list but instead
> it was just something we came to agree upon among those implementing it
> while implementing it.
In other words there was no public discussion whatsoever ;)
Well since we're are talking about the future direction of PHP, I guess
the question deserves some attention. I strongly disagree with this
approach of making PHP more "strict" and static. I really liked its
dynamicity and would not like to see it disappear under the pressure
from people who think Java or C++ (or any other langauge) are cool. For
me *PHP* is the cool language.
I would really like to hear what do PHP group members/core developers
think about this.
>>class foo{}; foo::$bar = 1;
>
> To cut the story short, any feature might have an advantage for somebody but
> also a heavy disadvantage for somebody else. But in the end if we'd agree to
> add this feature we#d also end up in supporting interception of static
> properties which we probably do not want.
Mike has already demonstrated that the patch to implement this
particular feature is very simple:
http://dev.iworks.at/PATCHES/dyn_static.txt
Edin