Re: parent_ctor()

From: Date: Tue, 18 Jul 2000 12:25:14 +0000
Subject: Re: parent_ctor()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24896@lists.php.net to get a copy of this message
KK>> $o->$somevar). Limiting object do class-predeclard instance variables KK>> may speed PHP - I haven't had a look at the implementation at all, No it won't. It would significantly slow down - you should check on any property request that it's in the list of "allowed" properties. And I really won't trade object extendability concept and flexibility provided by it to catch a couple of typing errors. Making life easier to good programmer is far more important than making life easier to bad programmer, IMHO. KK>> and in any case it will make it easier to spot coding errors. Well, it is known that bondage-and-discipline languages are catching errors earlier. Only problem it is that it's so painful to use them... You choose your level of being disciplined and adjust. KK>> What I am arguing, and vehemently, is that PHP should get some KK>> object model at all. Because what PHP currently uses under the KK>> name of objects and classes is something grown, and grown out KK>> of some midnight hack. For that it is amazingly powerful, but Well, we get here bashing again, and factless bashing is it. And again I beg: do tell something material, not "PHP object model is crap". Only thing you will get advocating POMIC point of view is "ok, it's crap, don't use it then". Please propose, not bash. Also, from what I feel PHP is now in "stabilize and bugfix" mode, not in "active development" mode. This is necessary for every project to gain some sort of stability. Though, if you have some ideas, they can surely be discussed, but don't expect them be in shortly. KK>> quite uncontrolled manner (e.g. the constructor mess). At the I do not see any mess there. The thing is pretty simple, AFAIK: "constructor is the method named after the class, or parent's constructor on absence of that". KK>> PHP _must_ become a fully featured programming language, Not so sure about this. There are real lot of FFPL's. PHP is not going to compete C++ or Java or Smalltalk - we really can't win there. KK>> OO, references and all, because people are now using it KK>> as such. Maybe you did not intend PHP to do all this, but KK>> this is no longer entirely your baby anymore, as it hasn't KK>> been Rasmus' for quite some time now. Well, you know, PHP is GPL, so you can extend it any way you like. But your way (which I still don't understand in full - what exactly do you want) isn't the way I personally like. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#24896) next »