Re: [PHP-DEV] [RFC] Properties in interfaces

2023-03-30 Thread Zoltán Fekete
> On Thu, Mar 30, 2023, at 2:21 PM, Alexandru Pătrănescu wrote: > On Thu, Mar 30, 2023 at 3:50 PM Larry Garfield > wrote: > >> >> This is a part of the "Property Hooks" RFC that Ilija and are working on. >> It's not *quite* done yet, but it's mostly there. The draft is available >> here: https://

Re: [PHP-DEV] [RFC] Properties in interfaces

2023-03-30 Thread Larry Garfield
On Thu, Mar 30, 2023, at 2:21 PM, Alexandru Pătrănescu wrote: > On Thu, Mar 30, 2023 at 3:50 PM Larry Garfield > wrote: > >> >> This is a part of the "Property Hooks" RFC that Ilija and are working on. >> It's not *quite* done yet, but it's mostly there. The draft is available >> here: https://wi

Re: [PHP-DEV] [RFC] Properties in interfaces

2023-03-30 Thread Alexandru Pătrănescu
On Thu, Mar 30, 2023 at 3:50 PM Larry Garfield wrote: > > This is a part of the "Property Hooks" RFC that Ilija and are working on. > It's not *quite* done yet, but it's mostly there. The draft is available > here: https://wiki.php.net/rfc/property-hooks > > Do you think we could have a smaller

Re: [PHP-DEV] [RFC] Properties in interfaces

2023-03-30 Thread Larry Garfield
On Wed, Mar 29, 2023, at 7:53 PM, Zoltán Fekete wrote: > Hi, > > [Proposal] > Allow interfaces to define properties. The implementing class must > have the same properties with the same name/type. > > As the goal of the interfaces is to define the public "surface" of > the implementing class, I th

[PHP-DEV] [RFC] Properties in interfaces

2023-03-29 Thread Zoltán Fekete
Hi, [Proposal] Allow interfaces to define properties. The implementing class must have the same properties with the same name/type. As the goal of the interfaces is to define the public "surface" of the implementing class, I think that the public properties are also part of that. [Use case] -