Re: [PHP-DEV] Re: Thoughts On Implementing Decorator Sugar to core

2011-11-28 Thread Anthony Ferrara
Comments Inline On Mon, Nov 28, 2011 at 12:57 PM, Matthew Weier O'Phinney wrote: > This seems reasonable, but there are some pretty big drawbacks as well: > >  * Type-hinting -- typically, a decorator should be able to be used >   wherever the object it decorates is used. As such, if you simply

[PHP-DEV] Re: Thoughts On Implementing Decorator Sugar to core

2011-11-28 Thread Matthew Weier O'Phinney
On 2011-11-23, Anthony Ferrara wrote: > I've had an idea that's been burning in my head for a while. Rather > than write an RFC or do any significant work on it, I thought I would > bounce this off of you all first. > > Basically, I see a problem with implementing decorators in PHP. Oof, yes.