Re: [RFC] Lazy Objects

From: Date: Thu, 18 Jul 2024 19:49:29 +0000
Subject: Re: [RFC] Lazy Objects
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi

On 7/12/24 08:47, Rob Landers wrote:
I think it would be up to the developer writing the proxy framework to use or abuse this
As I've just explained in my reply to Nicolas this is observable to the user and thus leaks implementation details of the proxy framework.
Currently, clone's default behavior is already astonishing for value objects!
clone has specific well-defined semantics: You get a distinct object with identical state (unless a __clone() method is implemented). Lazy proxies as specified in the RFC violate that. That you do not like the existing cloning semantics is an unrelated matter that is not relevant to this discussion. Best regards Tim Düsterhus

Thread (95 messages)

« previous php.internals (#124498) next »