Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127782 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 698281A00BC for ; Sat, 28 Jun 2025 09:47:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751103913; bh=lRCwWHesljN9nFtkzkb2T2PoD0OcnSL9xtFlLibHE8A=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=BQZU+k4qZrVfQcXwqWL7sFT9WtUamvJzoGDvaIR72neCamOZ0t2Cpbaa6K/PGzmfU QkFNcWq57GQIThCr/we1RMu0d1oMUoKcxeopdXHhs5BcY3jEUDFinnCBBT/Ts0pMUe bhiUOu+SHdkBvP2NNGMVIF9i8YZZx5snu5pTCA5VNJg+K7aO10PUCEanygDjp19ldE N6UNZGJMVg8Os04tjmvEDQ4egXfNSqpKMhdrejoxEWuDE5kzZaYbgldLvb7XbaBn61 24GjI2+AS6lZvwa2cLGBuA2YahB4CybXekTDDg1KdVhbICjuPI60cVRzIx3iW+5R2i ovJ46CdJTWQVA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3D8CA180074 for ; Sat, 28 Jun 2025 09:45:12 +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=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_PASS 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 mail1.25mail.st (mail1.25mail.st [206.123.115.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 28 Jun 2025 09:45:11 +0000 (UTC) Received: from smtpclient.apple (ppp-27-55-69-109.revip3.asianet.co.th [27.55.69.109]) by mail1.25mail.st (Postfix) with ESMTPSA id 84A3F6032E; Sat, 28 Jun 2025 09:47:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=koalephant.com; s=25mailst; t=1751104025; bh=lRCwWHesljN9nFtkzkb2T2PoD0OcnSL9xtFlLibHE8A=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=g7+vjNvLvhIHMuD5d9zKz49nbpbndBDGA8I+SAjYrF8My4vqfdUcXZ6heYvmyKOJ5 5UYn3AS5b4OItUk2Nmvic3Jki12lce7/hXyCAoA/F8KpLFFibH1j9Ebgs5is9kg8Mi G+d7PcHJq+VNW8cL4bYMVxDzDUeaM1DiE5K28Sf6kpkufmCF2KybzCvrZ9pwwNe+Dy 15dDCCN5Jy8Vo64xq0cwx0rMit3lDf3fdO0CXsn9t0s4idK89WiwfeeRRnIirZTLvt aDmnkta16oH/pPia8QsaKQCvrJg3taicjAULKk3lWvwCdw26dMiE/AfgFhrBUK4reJ R2WXXdZUypFOA== Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (1.0) Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 Date: Sat, 28 Jun 2025 16:46:46 +0700 Message-ID: <3778576D-5F1F-46C1-AE19-F8FABDCA3968@koalephant.com> References: Cc: php internals In-Reply-To: To: Larry Garfield X-Mailer: iPhone Mail (22F76) From: php-lists@koalephant.com (Stephen Reay) > On 28 Jun 2025, at 12:15, Larry Garfield wrote: >=20 > =EF=BB=BFHi folks. Arnaud and I would like to present take-2 at Partial Fu= nction Application. >=20 > https://wiki.php.net/rfc/partial_function_application_v2 >=20 > It is largely similar to the previous PFA proposal from 2021, though there= are a number of changes. Most notably: >=20 > * 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. >=20 > 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 g= oes smoothly, we're OK calling a vote on it for 8.5, especially as it would c= omplement pipes so well. If the discussion runs longer, we're also OK with t= argeting 8.6 instead. We'll see how that goes. >=20 > >=20 > -- > Larry Garfield > larry@garfieldtech.com >=20 Hi Larry,=20 I noticed your list of places this applies says "all function/method calls" b= ut then doesn't list object invocation (__invoke magic method). I assume th= at's just an oversight in the list of places it's applicable rather than an o= mission in support? Cheers Stephen=20=