Re: Random Monday thought.
| From: | Galen Wright-Watson | Date: | Mon, 03 Jun 2013 19:14:28 +0000 |
| Subject: | Re: Random Monday thought. | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67619@lists.php.net to get a copy of this message | ||
On Mon, Jun 3, 2013 at 10:30 AM, Richard Quadling <rquadling@gmail.com>wrote:
> On 3 June 2013 18:22, Brandon Wamboldt <brandon@brandonwamboldt.ca> wrote:
>
> > I think the point was that if somebody wants to extend one another class,
> > maybe one of the SPL classes for example, they can't also extend the base
> > class with getter/setter support so it's an incomplete solution that will
> > frustrate many users.
> > [...]
> >
> Ah. DOH!
>
> Would having an interface that swapped the default property accessor logic
> be any better?
>
Or a trait ("Accessable", "Accessored", "Accessorable")? Is it
possible to
have a trait implemented internally? Though it seems that this would still
sometimes run afoul of mixing new accessor logic with old.