Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127804 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 lists.php.net (Postfix) with ESMTPS id EC1BD1A00BC for ; Mon, 30 Jun 2025 15:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751296320; bh=X7PaYxTBwU/JHnDTsW+uiL/vezLipgQfoVRQO+rEz/M=; h=Date:From:To:In-Reply-To:References:Subject:From; b=OVYcc86b183zhv3DUjc5lk5yjiKJSGlQaUxi/3B9CaybBH3aA/fVIXDDN8BfyhoIZ df3Zh585vLJ042VVu2VoWyz+lXv41qg4ucCJjefboE10gPwZtd1TYfaR/BbIkHuf9Y HTSMFB5aPMVoAGYpZmxtkc4ojrPJaw4tQ+c93KjDwQC4EF+vCobNDl0wl5W+JCFYKZ 8m6IjKIJfkl2zbZ8NUctFr0vGZJoZRBL6Dkmz1NI1ghjLgAsnw2Nz3FImkBoefVm3y WAIRQHQEMhl8hmmbGMvhxw7p+OLdDA6W1aAm1Txi2ZARyTKSAHiKQ2U8AAXOS5sSDV byXQQ5imxkyfg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 77737180047 for ; Mon, 30 Jun 2025 15:11:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout-a3-smtp.messagingengine.com (fout-a3-smtp.messagingengine.com [103.168.172.146]) (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 ; Mon, 30 Jun 2025 15:11:49 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 840DCEC0255 for ; Mon, 30 Jun 2025 11:13:42 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Mon, 30 Jun 2025 11:13:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1751296422; x=1751382822; bh=nDK4H5a1c3ID30F1mmke2 c463q7KgiWe8VA6dao3sZ8=; b=sStNoKXgDzC/udYiyLGhLa8bHhcf9D91tEXzW zdxquZ20nUvFCzhJRWX3qCeOrBRe9BEnJnF5GUPmYZ06dsqO8Z0YRR+oEpMgusm+ dfVHySMCHyK2AbDOk19PrPrYSxseIPpeCiDJFV0VYw2R6VIkGRILNGFcovtMd8eM K7AZTwzdwNgeFM/cIQdCTye5WP4RKqPR72ZlBlVDVI69VEaEKoFJahaS5zPaClBE w5nNFxX/xoUp0d/ClRtXFcaNeKEuiA3SGyj6LIrAjeTtj48YywLii6mBCsnRvint 31S/7N1KhQ3ArJkUF/mwwltmFeg7Tz/OibBur9kRMi0qswf5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1751296422; x=1751382822; bh=n DK4H5a1c3ID30F1mmke2c463q7KgiWe8VA6dao3sZ8=; b=B7gVD079ANf9mA19v 5WvWIFPUqGlB2LYt3NKy9oOWC+v+ld4jgrcbIgX8eaiNjwy0mHZBo8I8Dra9vr7Z QGqsYch+HIhhS8J9jQnrT+3pk1Uom97ogsExZEIqZAPCD3eDbp2LuFinO1DxTFm/ 5LlOziiMfJeZ3bRfToS3uo7wfCetzA1ih9eQeOUCTHMEH1L5RPEQHEs7DTo0INhg H0Vepdpph1q5+gmtwp+iU/BjAX5WOgs1RDywbQMUR5nzVkn10Xa3+gaK7+jHBAQk wFT6unoTp12+nInZMqq2tA+5ZhCCoE3AXDHkPGFbtM2CRmUkPZCWy81FUlPZ1nr+ NYkWA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduvddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvkfgjfhfutgfgsehtqhertdertdejnecuhfhrohhmpedfnfgrrhhrhicu ifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomheqne cuggftrfgrthhtvghrnhepuefgteeijeeuveffudelhffhtefhkeevtdeuvefgffdvfeei vdetgfehveetleffnecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhgu thgvtghhrdgtohhmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 4373E700065; Mon, 30 Jun 2025 11:13:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: T7b7d29473ae5162b Date: Mon, 30 Jun 2025 10:12:54 -0500 To: "php internals" Message-ID: In-Reply-To: <2be2b865335201e2b6a859c12188e8bd@bastelstu.be> References: <2be2b865335201e2b6a859c12188e8bd@bastelstu.be> Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Mon, Jun 30, 2025, at 2:28 AM, Tim D=C3=BCsterhus wrote: > Hi > > Am 2025-06-28 07:06, schrieb Larry Garfield: >> https://wiki.php.net/rfc/partial_function_application_v2 > > Some thoughts, I did not yet take an in-depth look: > > - Will PFA be available in constant-expressions, following the =E2=80=9C= First=20 > Class Callables in constant expressions=E2=80=9D RFC=20 > (https://wiki.php.net/rfc/fcc_in_const_expr)? We hadn't discussed it, actually. I'll have to ask Arnaud how difficult= that would be. If it's easy enough, I'd say yes it should, but if it p= roves complicated we may need to punt on it. I'll update the RFC once w= e know. > - It would be good to include an example section not using a regular=20 > =E2=80=9Cfree-standing=E2=80=9D function in the RFC. The RFC already m= entions that all=20 > callables are supported, but explicitly showing an example for the=20 > possible alternative syntaxes (including `$foo->bar(?)` and `$foo(?)`=20 > would be useful. I have added more examples that cover non-function things. > - Starting with the =E2=80=9CRFC Impact=E2=80=9D section, several sect= ions of the=20 > template are not filled in. Trimmed, as there's nothing to say there AFAIK. --Larry Garfield