Re: [RFC] Lazy Objects

From: Date: Sun, 30 Jun 2024 13:20:40 +0000
Subject: Re: [RFC] Lazy Objects
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.internals 
Request: Send a blank email to internals+get-124091@lists.php.net to get a copy of this message
Hi On 6/22/24 00:22, Benjamin Außenhofer wrote:
Given the complexities of newLazy* already, i am just trying to find arguments to keep the public surface of this API as small as posisble, as its intricacies are hard to grasp and simplicity / less ways to use it will be a benefit. So far i don't see that with resetAsLazy* you can impmlement something new that cannot also be done with newLazy* methods.
For the record, I share these concerns and also mentioned them in the email that I just sent. I've also previously asked this in this email, including the named constructor as a workaround, just as Benjamin did: https://externals.io/message/123503#123525 Best regards Tim Düsterhus

« previous php.internals (#124091) next »