Re: [RFC] Properties in interfaces

From: Date: Thu, 30 Mar 2023 14:21:10 +0000
Subject: Re: [RFC] Properties in interfaces
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-119793@lists.php.net to get a copy of this message
On Thu, Mar 30, 2023 at 3:50 PM Larry Garfield <larry@garfieldtech.com> 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 RFC that only deals with properties in interfaces that are just like what's allowed in classes right now, public and public readonly? The need seems to be: a readonly property in classes and a interface that signals a get-only access so maybe readonly flag on interface attribute is clear. Or maybe that can be attempted to be achieved in the same rfc and we fallback to a smaller RFC for the interface only in cases property-hooks RFC does not pass? Thank you, Alex

« previous php.internals (#119793) next »