Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-07 Thread Andreas Hennings
On Mon, 7 Jul 2025 at 15:57, Larry Garfield wrote: > > On Fri, Jul 4, 2025, at 6:50 PM, Andreas Hennings wrote: > > On Thu, 3 Jul 2025 at 23:44, Larry Garfield wrote: > >> > >> On Thu, Jul 3, 2025, at 12:49 PM, Andreas Hennings wrote: > >> > >> >> A setter method injection is what I did in Attrib

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-07 Thread Larry Garfield
On Fri, Jul 4, 2025, at 6:50 PM, Andreas Hennings wrote: > On Thu, 3 Jul 2025 at 23:44, Larry Garfield wrote: >> >> On Thu, Jul 3, 2025, at 12:49 PM, Andreas Hennings wrote: >> >> >> A setter method injection is what I did in AttributeUtils, because it was >> >> the only real option. >> > >> > In

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-04 Thread Andreas Hennings
On Thu, 3 Jul 2025 at 23:44, Larry Garfield wrote: > > On Thu, Jul 3, 2025, at 12:49 PM, Andreas Hennings wrote: > > >> A setter method injection is what I did in AttributeUtils, because it was > >> the only real option. > > > > In my experience, this alternative leads to more complexity in > > a

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-04 Thread Rob Landers
On Sat, Jul 5, 2025, at 00:47, Andreas Hennings wrote: > On Sat, 5 Jul 2025 at 00:11, Rob Landers wrote: > > > > > > > > On Fri, Jul 4, 2025, at 17:21, Andreas Hennings wrote: > > > > On Fri, 4 Jul 2025 at 06:30, Stephen Reay wrote: > > > > > > > > > > > > On 4 Jul 2025, at 00:54, Andreas Henni

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-04 Thread Andreas Hennings
On Sat, 5 Jul 2025 at 00:11, Rob Landers wrote: > > > > On Fri, Jul 4, 2025, at 17:21, Andreas Hennings wrote: > > On Fri, 4 Jul 2025 at 06:30, Stephen Reay wrote: > > > > > > > > On 4 Jul 2025, at 00:54, Andreas Hennings wrote: > > > > On Thu, 3 Jul 2025 at 19:17, Stephen Reay wrote: > > > > >

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-04 Thread Rob Landers
On Fri, Jul 4, 2025, at 17:21, Andreas Hennings wrote: > On Fri, 4 Jul 2025 at 06:30, Stephen Reay wrote: > > > > > > > > On 4 Jul 2025, at 00:54, Andreas Hennings wrote: > > > > On Thu, 3 Jul 2025 at 19:17, Stephen Reay wrote: > > > > > > > > > > > > Sent from my iPhone > > > > On 3 Jul 2025,

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-04 Thread Andreas Hennings
On Fri, 4 Jul 2025 at 06:30, Stephen Reay wrote: > > > > On 4 Jul 2025, at 00:54, Andreas Hennings wrote: > > On Thu, 3 Jul 2025 at 19:17, Stephen Reay wrote: > > > > > > Sent from my iPhone > > On 3 Jul 2025, at 23:40, Larry Garfield wrote: > > On Wed, Jul 2, 2025, at 5:26 PM, Andreas Henning

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-03 Thread Stephen Reay
> On 4 Jul 2025, at 00:54, Andreas Hennings wrote: > > On Thu, 3 Jul 2025 at 19:17, Stephen Reay > wrote: >> >> >> >> >> Sent from my iPhone >>> On 3 Jul 2025, at 23:40, Larry Garfield wrote: >>> >>> On Wed, Jul 2, 2025, at 5:26 PM, Andreas Hennings wrot

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-03 Thread Larry Garfield
On Thu, Jul 3, 2025, at 12:49 PM, Andreas Hennings wrote: >> A setter method injection is what I did in AttributeUtils, because it was >> the only real option. > > In my experience, this alternative leads to more complexity in > attribute classes. > The constructor needs to populate the attribute

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-03 Thread Larry Garfield
On Thu, Jul 3, 2025, at 12:54 PM, Andreas Hennings wrote: >> > A setter method injection is what I did in AttributeUtils, because it was >> > the only real option. Alternatively, I suppose core could use property >> > setter injection (either a magically named property like $__reflector, or >

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-03 Thread Andreas Hennings
On Thu, 3 Jul 2025 at 19:17, Stephen Reay wrote: > > > > > Sent from my iPhone > > On 3 Jul 2025, at 23:40, Larry Garfield wrote: > > > > On Wed, Jul 2, 2025, at 5:26 PM, Andreas Hennings wrote: > >> This topic was discussed in the past as "Declaration-aware > >> attributes", and mentioned in th

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-03 Thread Andreas Hennings
On Thu, 3 Jul 2025 at 18:29, Larry Garfield wrote: > > On Wed, Jul 2, 2025, at 5:26 PM, Andreas Hennings wrote: > > This topic was discussed in the past as "Declaration-aware > > attributes", and mentioned in the discussion to "Amendments to > > Attributes". > > I now want to propose a close-to-RF

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-03 Thread Stephen Reay
Sent from my iPhone > On 3 Jul 2025, at 23:40, Larry Garfield wrote: > > On Wed, Jul 2, 2025, at 5:26 PM, Andreas Hennings wrote: >> This topic was discussed in the past as "Declaration-aware >> attributes", and mentioned in the discussion to "Amendments to >> Attributes". >> I now want to p

Re: [PHP-DEV] [RFC idea] Target-aware attributes

2025-07-03 Thread Larry Garfield
On Wed, Jul 2, 2025, at 5:26 PM, Andreas Hennings wrote: > This topic was discussed in the past as "Declaration-aware > attributes", and mentioned in the discussion to "Amendments to > Attributes". > I now want to propose a close-to-RFC iteration of this. > (I don't have RFC Karma, my wiki account