Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127890 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 767D51A00BC for ; Fri, 4 Jul 2025 22:28:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751667985; bh=RrpWW6cX6EKVECiGWTTryJwEwi+iyqKKvsVgAUeEtJs=; h=Date:From:To:In-Reply-To:References:Subject:From; b=Yk/dXl8QXGcua8opfGF2cy6mcDMUPbExVhBYA0q+7C66+fm7YwPOkQJJKU5DRHoet A3M4GtD6qUj8l013KYbGTt8h/r7CTuA1gZ+D9SpUv0tuwiP9IQ/uEz/Efw0s81Nsuh 62H2X2vBaPnZEvS/mrMD4ytxmlk1Q/9OLtQ9LrNDWeeNyRkqJ5MrtKgIkQO+OMEqtq g8MWBWfTmdRmulkCVsgt5AO0iVZZYS9fuBGOmg0WoNDKuHJsQ/YjG3VepCiDw7VEMR kpuRmByslLxf0G+5KwvAWU6dJ4OqmJ9f9XuCKxJtNCQn1w/oUivJkRpLrAuhWMfv08 zFA0jggTNHujA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5C00E180057 for ; Fri, 4 Jul 2025 22:26:23 +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=-1.4 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,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 fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150]) (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 ; Fri, 4 Jul 2025 22:26:23 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id BEA8B1D00120 for ; Fri, 4 Jul 2025 18:28:14 -0400 (EDT) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-05.internal (MEProxy); Fri, 04 Jul 2025 18:28:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc: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=fm3; t=1751668094; x=1751754494; bh=vcTy9IcHvz py4gHMyhwDiQFEXYpmdOI2IbkMAMnzhpA=; b=Q//Bt7GBLhWIFvFKjItFpQ1ORJ 0sm72Kzdy4VGTfuTYlL2qyENmKIEnugUd+RNm5Pbz1GYF8Zyp8uKUDmod+WCaJfR pZQ3z+sk/Tl3UbOzkAAHKAIWdsrHQwL7NfARZVz+QKGKydKnEhVlseRAPeOniO8y ZiGtSHjdnkDzWnJB4jqSc5LTmc71+CA3QSoav6Z/6z64PeziZay0TLVAY1fb4Yc8 ubMXzlQBsJqiB1hm6IUgDGaECyKMl6fJ6Y/E0YcE8MxQ8koQ4hZzPR3wVr2keFUb YU83xnQIUX/2Ba8z0Kc+nA4NESS5FmFuXPk27YiVyj8y+I88RuPTfo1D9DlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= 1751668094; x=1751754494; bh=vcTy9IcHvzpy4gHMyhwDiQFEXYpmdOI2Ibk MAMnzhpA=; b=Em53y8F2XHH9h2yj2+c/DUfraTvLxKOnZHLIelM3YKwk9vQI96v JPWpNj+HPaY6SpXcuepcAzNVj0A7ioGt9cueFekCSLVfPGChPuvEUmsHVMhU58vQ fi2EHG0jGHVTuTGftcCrzjf62VjGs/DuwoGxGYnZvqY71FWqNK5c3Xwkful3mqI0 60l2Di2dOvRvt+gOFID1sc6EajnT7fIUsIsBHxZ4h+m6nu9ykdYDSyu0FRzmbLq1 RQd9wgKazq5Vg/B54C9iwk5Lj5iXqXsV8uRNoKF/0+gbOqKssPJe6z8wp3CacmjM 3pAehB9+cy/hMmi8SI+T4Xmo2KDOoCUipSw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddvgeefiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepofggfffhvffkjghfufgtsegrtderreertd ejnecuhfhrohhmpedftfhosgcunfgrnhguvghrshdfuceorhhosgessghothhtlhgvugdr tghouggvsheqnecuggftrfgrthhtvghrnhepleekhedtgfefhfelieelgfegiefhkedvle efjedtffelhfehheffgfduteduuddtnecuffhomhgrihhnpehphhhprdhnvghtnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhosgessghoth htlhgvugdrtghouggvshdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhht pdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 6B2F9240008E; Fri, 4 Jul 2025 18:28:14 -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: Tdc617dd30c19993a Date: Sat, 05 Jul 2025 00:27:34 +0200 To: internals@lists.php.net Message-ID: <6a9d4f24-65e4-40ee-bf16-9b1120486d83@app.fastmail.com> In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 Content-Type: multipart/alternative; boundary=a053ecee004a4c46bd4c7092edcc4f68 From: rob@bottled.codes ("Rob Landers") --a053ecee004a4c46bd4c7092edcc4f68 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, Jun 28, 2025, at 07:06, Larry Garfield wrote: > Hi folks. Arnaud and I would like to present take-2 at Partial Functi= on Application. >=20 > https://wiki.php.net/rfc/partial_function_application_v2 >=20 > It is largely similar to the previous PFA proposal from 2021, though t= here are a number of changes. Most notably: >=20 > * The implementation is simpler, because FCC already did part of the w= ork. 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 cyc= le. We are proposing it now because, well, it's ready now. If the disc= ussion 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. >=20 > >=20 > --=20 > Larry Garfield > larry@garfieldtech.com >=20 Hi Larry, I hope your trip through the trap door is largely uneventful with a smoo= th integration into 8.5. My only question: why does this implementation care if you specify too m= any arguments when PHP doesn=E2=80=99t care if you call a function with = too many arguments? I think it=E2=80=99s a good thing that it cares, and I think PHP itself = should care, but should this RFC change that expectation? =E2=80=94 Rob --a053ecee004a4c46bd4c7092edcc4f68 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Sat, Jun 28, 2025, at 07:06, Larry Garfield wrote:<= /div>
Hi folks. = Arnaud and I would like to present take-2 at Partial Function Applicati= on.


It is largely similar to the pre= vious 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 tha= t this is a non-trivial RFC coming late in the cycle.  We are propo= sing 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 als= o OK with targeting 8.6 instead.  We'll see how that goes.

<floor opens for discussion, Larry falls through the= trap door>

-- 
  Larry = Garfield


Hi Larry,

I hope your trip through the= trap door is largely uneventful with a smooth integration into 8.5.

My only question: why does this implementation car= e if you specify too many arguments when PHP doesn=E2=80=99t care if you= call a function with too many arguments?

I thi= nk it=E2=80=99s a good thing that it cares, and I think PHP itself shoul= d care, but should this RFC change that expectation?

=E2=80=94 Rob
--a053ecee004a4c46bd4c7092edcc4f68--