Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124091 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id D2F051A009C for ; Sun, 30 Jun 2024 13:20:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719753724; bh=EQawJ098fRQFVtSHwcqCXYudpwhzxIwLieCIAP5PJd8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FaDz+KUAojOQiX5Duu+TT9VLj/VpW5nNBSxP9eH0j7OJjU24/fl6eC1aDjOkJRap+ k5eRFTc7T8JMsgWu1m/c+qY9aMObA5CJlmzbyBi4dGBS1bY7EDwe0eWf9v6lzRVqSS 7YxTOYQ6di6Nz4Rb7exebKtDKscEdIySVepcejN5tWdkpXDsoHjbLCCUlO+Gaq5oQM zTTL0A7M5GFKDcjr/SzauIjfK5wQOJWH1Fo8Qi8W/i0bwqOkrhqNhrLNSvng4DOkDx len8JcG60Xp8JoJj8yd9bPBvbYZ99nw0VVxGuHAFW/WESfjBTEwNWnendptLXwCZez 7aoN0BkubxG4Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DF5561807C6 for ; Sun, 30 Jun 2024 13:22:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 30 Jun 2024 13:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1719753641; bh=k/BkBF0WEFhUjEicC0npyYMkLQdkNV+LAXlgWFj20y8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=osnsU+7eDuNqAO5sVfs5y8m2bDhBnYRUOYQKrpgqfpoCOluXqIZWkkO63cJnJjhpR i2tIWce6SX4x/PRPugQ2i/+HYlup6Tid2fYnhSMWazQ/ed/Ahu98cvk0XbkqKROKKB i++Whklk6flAI70ayierCAaneqw7uPI6zwZKOZouaQ7rv6lQ4oH4OV8lFZqPo126pI so8f91YV9iVCPuRQSXAVmpf6gnjlzSFz7K/qjBKXoM3MARrpBggWZqryD7MKuq6njC Lb5h1P6xOWd0WBctKLDgixi2qkueAsu9+ojZm3azweRXRWk88PumQXhzy1IplPPnzv /AtzLhHYWFy6g== Message-ID: <83eb2888-1a43-44d6-8385-bef4ca9d0cce@bastelstu.be> Date: Sun, 30 Jun 2024 15:20:40 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Lazy Objects To: =?UTF-8?Q?Benjamin_Au=C3=9Fenhofer?= , Nicolas Grekas Cc: Larry Garfield , php internals References: <1118bbcd-a7b4-47bf-bf35-1a36ab4628e1@bastelstu.be> <8fc1969d-5f21-400d-a3ae-aee5d741a81d@app.fastmail.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) 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