Re: Re: [Zend Engine 2] Re: [PHP-DEV] Re: [ZendEngine 2] RE:[PHP-DEV] oo != php
| From: | Zeev Suraski | Date: | Tue, 11 Jun 2002 12:29:20 +0000 |
| Subject: | Re: Re: [Zend Engine 2] Re: [PHP-DEV] Re: [ZendEngine 2] RE:[PHP-DEV] oo != php | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85135@lists.php.net to get a copy of this message | ||
At 11:23 AM 6/11/2002, Sebastian Bergmann wrote:
This way, an object of Foo can dynamically change behaviour in a very elegant way.I'm well aware of the strategy design pattern, but it existed before 'Lava' (I use it in Java all the time)... You can just as easily do this by creating a new object with the requested strategy. The added mess that dynamically changing the aggregated objects gives you is not worth the benefit, IMHO. Zeev