Re: Decorators Revisited

From: Date: Mon, 13 Aug 2012 23:16:25 +0000
Subject: Re: Decorators Revisited
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-62132@lists.php.net to get a copy of this message
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

« previous php.internals (#62132) next »