Re: [RFC] Lazy Objects
| From: | Rob Landers | Date: | Wed, 26 Jun 2024 21:09:34 +0000 |
| Subject: | Re: [RFC] Lazy Objects | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123894@lists.php.net to get a copy of this message | ||
On Tue, Jun 4, 2024, at 14:28, Nicolas Grekas wrote:
> Dear all,
>
> Arnaud and I are pleased to share with you the RFC we've been shaping for over a year to
> add native support for lazy objects to PHP.
>
>
> Please find all the details here:
> https://wiki.php.net/rfc/lazy-objects
>
> We look forward to your thoughts and feedback.
>
>
> Cheers,
> Nicolas and Arnaud
>
Can you add to the RFC how to proxy final classes as well? This is mentioned (unless I
misunderstood) but in the proxy example it shows the proxy class extending the proxied class (which
I think is an error if the base class is final). How would this work? Or would it need to implement
a shared interface (this is totally fine IMHO)?
— Rob