Re: Decorators Revisited
| From: | Nicholas Curtis | Date: | Mon, 13 Aug 2012 23:50:15 +0000 |
| Subject: | Re: Decorators Revisited | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62133@lists.php.net to get a copy of this message | ||
I agree great idea. Would really help to simplify benchmarking code also.
On Mon, Aug 13, 2012 at 4:16 PM, Nils Adermann <naderman@naderman.de> wrote:
> On 08/12/2012 08:17 PM, Anthony Ferrara wrote:
> > Thoughts?
> Yes, please. I think this would be a great simplification for all kinds
> of extensibility / plugin mechanisms implemented in various PHP projects.
>
> Typically these either end up with the boilerplate you described or try
> to come up with some kind of hack (e.g. dynamic code generation) to
> circumvent the problem of having to explicitly define parent classes if
> one wants to dynamically decorate objects multiple times while maintaing
> interfaces.
>
> Cheers,
> Nils
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>