IMO good as-is: can be relaxed later (8.3 or later), if anybody believes
it's a show-stopper.
Readonly classes don't really need to be lazy.
Marco Pivetta
https://twitter.com/Ocramius
https://ocramius.github.io/
On Fri, 2 Sept 2022 at 19:31, Nicolas Grekas
wrote:
> Hello everybody, hi Mate
Hello,
public private(set) string $bar;
This is extremely weird to read and especially with the future operations,
very hard to understand too.
I would strongly recommend explicit over implicit and use instead
public(get) private(set) string $bar;
Now that's quite clear.
Thanks
NK
Hello everybody, hi Mate
I played with readonly classes recently, to add support for them to
lazy-loading proxy generation and I struggled upon what I see as serious
issues.
As noted in the RFC, and because the readonly flag must be set on child
classes, those cannot:
1. Declare a new non-rea