Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127781 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 DC4311A00BC for ; Sat, 28 Jun 2025 05:07:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751087120; bh=E8WFqOCqxse67cNX8J+g2fFEji2bqXZlcM199pDB4gQ=; h=Date:From:To:Subject:From; b=nSbEfpNHI0FkYDAKPpR5JLbPJfjx+OnNoD+0sTQFGddnF6Xsa0Pxn4W3A5rIPo0Nb 7m+VP9phzeWIQCEdehHLHTHEJf66Hi9kpOXh8NHdGf9qSjDHvHXrMG32+6tKfwmtX3 br5oT4vM/2D/+JA2e+ijjIhA+V4qt6nmHZmCHsb16cQQ5UzTI1oWDpPepPxVx7PMA4 Gyj1Pp0zRmtgHvVtetJL0AzrP6ccNZojy9Nhx9BNKKF4/dSxbyuy2BFngmrh0zIHef /2/mvGzTLPO/FuH2+IiIjKW+/zdqw7i8l2Xf0+Y2781aqjbN1rZEUPHRVhiCfrKZ85 vkny2xveGJAFA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7791B180509 for ; Sat, 28 Jun 2025 05:05:19 +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-a7-smtp.messagingengine.com (fout-a7-smtp.messagingengine.com [103.168.172.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 28 Jun 2025 05:05:19 +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 776D3EC00E3 for ; Sat, 28 Jun 2025 01:07:13 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Sat, 28 Jun 2025 01:07:13 -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:message-id :mime-version:reply-to:subject:subject:to:to; s=fm2; t= 1751087233; x=1751173633; bh=ISj4Bgz71cYZotCytirSoW9ZOQTN4+yp60B 5njoVwCw=; b=P3LDGU0V3JE7nPU5dmqb4Th1XoLj7vzRbbfcnRVAbSi2s2AHM5w LN1MTqDPskyZFH/AZ+bokok0Pe5CHs+0RvTRbeB+aSkq/5zNhR7zeGI9LCBidY3t W97TOHR3/GVJ/rpOjpFjPfwFpmgSCyACaT7QOsDaTf3WFS3uURN71x9L2jso5Qlq /kOVKAoV+s+qHZAe5A8BOtG+eLxicm03AdBavozap3jnW5cvhQYJXc0UJX0FSXKB K6VZsVlSpkBhdKA6DraiLeL0BWF77G6LTcQF1+hjhlE/ohQrrDuHpd73hot4BsWA nofbwtulC1fy5InrDXGWJ8qRyKmQ3zVfpEQ== 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:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1751087233; x=1751173633; bh=ISj4Bgz71cYZotCytirSoW9ZOQTN4+yp60B 5njoVwCw=; b=bLPgyl7zbXSLKgbMYfumHikASzzLV391phWcEwZEXUpl33ntlpc fpvY7I88G/gfpdxTrxTnOMcrvI9H1BZVmFa69jDzn6ht9GCMDlluD8d6JnX0rEcj 3fTb5O55EV5MMEyEp+21+fPDS7soEHugEgysZ5F0hJnhDzqwQHNQtgxXBVQaGp7A rxDsmUe4IEhvDDlCH4Po/4Os1XLfgX58iutXV1fpvoEirAijBb+/W/5VWuOzP5dz KsaP51/VAkonpehYAc7EREh3t5aoPF9dx88dLsUHq/rOs86vx0vl4hIRwh3flc7a n0wC+VGZmVeZNliOM/sm4NtAUL3bwyKUqxA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdehtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epofggfffhvffkufgtgfesthejredtredttdenucfhrhhomhepfdfnrghrrhihucfirghr fhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqeenucggtf frrghtthgvrhhnpeduhfffheffkeeivdegveehleejvdefffejvdfhueeuuddtleejfefg heethefghfenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggt hhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpth htohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id E7C1E700063; Sat, 28 Jun 2025 01:07:12 -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 Date: Sat, 28 Jun 2025 00:06:52 -0500 To: "php internals" Message-ID: Subject: [PHP-DEV] [RFC] Partial Function Application v2 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") Hi folks. Arnaud and I would like to present take-2 at Partial Function Application. https://wiki.php.net/rfc/partial_function_application_v2 It is largely similar to the previous PFA proposal from 2021, though there are a number of changes. Most notably: * The implementation is simpler, because FCC already did part of the work. This RFC can build on it. * Constructors are not supported. * But optional arguments and named placeholders are supported. * It includes pipe-based optimizations. Note: We realize that this is a non-trivial RFC coming late in the cycle. We are proposing it now because, well, it's ready now. If the discussion goes smoothly, we're OK calling a vote on it for 8.5, especially as it would complement pipes so well. If the discussion runs longer, we're also OK with targeting 8.6 instead. We'll see how that goes. -- Larry Garfield larry@garfieldtech.com