Re: Static properties
On Wed, 26 Apr 2006, Edin Kadribasic wrote:
> Marcus Boerger wrote:
> > It is just some decision that was taken that the newer OO stuff should be a
> > bit more strict.
>
> I don't remember any such decision. I don't even remember a discussion about
> it. I'm aware of the efforts of some people to make PHP less PHP and more Java
> and thus we end up in a situation where:
>
> class foo{}; foo::$bar = 1;
>
> is a fatal error. This makes things that I really like about PHP impossible.
> By now I'm used to being not constrained by a static language and having such
> restrictions placed on new features makes no sense to me.
Yup, I agree. OO is good, but it shouldn't limit application development
just for the sake of things not being pure OO.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
Thread (15 messages)