Re: aggregation?
| From: | Sebastian Bergmann | Date: | Sat, 28 Jun 2003 05:50:00 +0000 |
| Subject: | Re: aggregation? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2922@lists.php.net to get a copy of this message | ||
Wei He wrote:
> Now they are even going to remove aggregation.
It is gone.
> I think there need to be more discussions between developers and
> users on adding or removing an important feature.
Users wanted interfaces. PHP 4 could not accomodate that wish. PHP 4
introduced aggregation as a (ugly) workaround. PHP 5 has a new object
model and can accomodate the original user's wish. Hence no need and no
place for aggregation in PHP 5.
Also, I think you still did not get the difference between modelling
your code (interfaces) and code reuse (inheritance). Either way, this
discussion is off-topic here.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/