Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127788 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 100A61A00BC for ; Mon, 30 Jun 2025 00:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751243261; bh=UMbZyJorldnoIV/CM2l4WQ1mz3AH3hW9Yu1VIO6MuBg=; h=From:Subject:Date:References:To:In-Reply-To:From; b=B4hq3LnrDbVb1XUOQmnKhlWqZFqdc/CP4gaoqWsmuT6BfJK6UEzWnZ3ofTibpBplb jKCSLSBQ4/106r5V2dHNLHFmfgaVe2jwxpnER5nWkN0IkNqX2GocA+inDCbGqwz8pQ NjMwv4eK6e5v9Y2AiwKtldSS7RVXFqmPIden0uZNpXVtkAF2vMS31QemYW9o+SgCu1 RIL34+WaK8j4d65M1A1X6vIo1LvR+0bnuH6Hffz0oery8HkRQktZApakCBFd1N5N0l 75M+2CKhSq35q0Y47flpwYyT+PUVybobEPuyPsN0URHqAiCLmtKTkyN0c3wGTJg+1k Ejas6Ih8DUQ8g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 42CCD180041 for ; Mon, 30 Jun 2025 00:27:40 +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.7 required=5.0 tests=BAYES_50,DMARC_NONE, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,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 mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (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 00:27:39 +0000 (UTC) Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-4a6f0bcdf45so23034271cf.0 for ; Sun, 29 Jun 2025 17:29:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751243373; x=1751848173; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wl1ATkZZgYdxX/kchNOj9X3r8AW3Dq1MerUzLmVT6pc=; b=BsHfif3+nDGIPRK23EZUKvGT1AjeAY/SaxyL5oPJJFVDqRS9AHjd6w4xb3BwNCY2ms uusxjzGKNAiP0v7iVQJlbgIIPsNgW9vRzGNXpzeF2Ey/IK1gEg3lUKfmiHf5fZ4tZQo4 MRPFy/tbhWlETC9gZkoY4qXszrEUn51SbfaxQ0cTP4ucsGBu4K9vKsHGiREk1TutVFjU ke/uA+2DXC98iH816KXv4FIW6SzmV+AvQIvEzhZp7CCmguOrj6Lh7xe66j39gYkGT+Jm ty7b9j8cmxEN9AR/3RVIGW3LTpM3Lvk+ZZWr+9JKD6m0V/rXFvfH0lo2SCoal988kDni ixSg== X-Gm-Message-State: AOJu0Yw2jxUXo5JoPVWnejaQ63tsEErrt0uPmP/M9Ln4gJdqIT5eJceh XCkK3NFp5HGdbokhpuhl00XQhzYiqMjFbiL4DHED6UZNY0dPkT5MqDHm+RMaYN2TyHTlbC2l6S8 3f3Mz3vQk5L4= X-Gm-Gg: ASbGncsyPzjeTrTzJmW+ay30ZDFy2TNcT1dfD+TvDy7gF33JZYsU9D5ByfIp3lGGIYe TNgsS4xuijPVzETkx7mupuwU1o4thJReSch8+FPtdCp68YYjaGHtxTvPyOlbd3/QNt8jBLmssMk TUzHWy4/IeeXKkRswAPelfu3/7Xc2AzoQHCtvKSVcrJnYo5BqAN0zOfB1raDygfiTdPwGdua6Bb DGeOufZ058uqueez0I38GO5SLb2m3Pa7EB8Zai/XCEOV92PL1rsMZX5RvsyK6i64vH6UdJjmTKu +DX6+O+vfbtFnHc931SNTI3fbMHOJYY7PB14YneM5zLhlLHn+i8q0geWjzNXjzCSz1cAsw== X-Google-Smtp-Source: AGHT+IHgYlQCSl8j/VI0VKoavHq/JCEzM0CDbwBlIFhe4RZ/l/Zod9cTk9PHNOVFDtGiCRR2xJ+y8g== X-Received: by 2002:ac8:5802:0:b0:4a7:7032:d229 with SMTP id d75a77b69052e-4a7fcacdfcbmr206830561cf.39.1751243372820; Sun, 29 Jun 2025 17:29:32 -0700 (PDT) Received: from smtpclient.apple ([37.19.211.70]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4a7fc1061e1sm50154671cf.6.2025.06.29.17.29.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Jun 2025 17:29:32 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_E8E83854-3C40-42D5-9E14-E5E5B5D6D259"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 Date: Sun, 29 Jun 2025 19:29:19 -0500 References: To: php internals In-Reply-To: Message-ID: X-Mailer: Apple Mail (2.3826.600.51.1.1) From: ramsey@php.net (Ben Ramsey) --Apple-Mail=_E8E83854-3C40-42D5-9E14-E5E5B5D6D259 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 28, 2025, at 00:06, Larry Garfield = wrote: >=20 > Hi folks. Arnaud and I would like to present take-2 at Partial = Function 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 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 Great RFC. It has my vote! Under the section =E2=80=9Cfunc_get_args() and friends,=E2=80=9D one of = the examples shows: $f =3D foo(?, ?, ??); I assume this is a typo? Cheers, Ben --Apple-Mail=_E8E83854-3C40-42D5-9E14-E5E5B5D6D259 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCaGHaXwAKCRCwLZeYnIwH G34zAP9PzycMeZPJWY3Mlw+UwFRt/8A5+XzCIPk9Hm2KKPQp+QD+NlBEwwetN+aT wm8ySYtD+GgoUlGsCbjrquisq0LAuUY= =f3c0 -----END PGP SIGNATURE----- --Apple-Mail=_E8E83854-3C40-42D5-9E14-E5E5B5D6D259--