Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129048 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 07D531A00BC for ; Sat, 1 Nov 2025 22:26:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762036002; bh=jAPp9Z/vlbJjLn9vkftSo7hPUUNXgncCJGhRKrcYV5s=; h=Date:Subject:To:References:From:In-Reply-To:From; b=emLdsfO6T/7booXIigRlef6tEqyg+L2uXP23bRlusJEGCV9K2ZDoR1Avq1C4lJTms YdVMFF8RfL8MpnPlF7nVOc+KcNPOkfKYPMMR1qlnPV9Ii+AojUR9lzECeBubmmRWfo fhzn5to5kwxG9CzkjqvaYB6+1GlKO41vpru0r1qT71wgLXDU3ylME3fmvC3KCcmttO OO0JG/oO7eKmPoLY9xDeGpbyIEYivNJHR1KyKozJb/OgeKGx0FfM0ZeIYHj37Bp02b 2Es7j/K83Lrq8Q4Mfy0EdHZmwbS4B3ZOT9ExmzHuhJMaxzkXFN8+HXR41p2L4fHt32 HYPUuJxw7dx2Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C48F3180039 for ; Sat, 1 Nov 2025 22:26:41 +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_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Sat, 1 Nov 2025 22:26:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1762035984; bh=BhRlg78UyrDpE7k1w5pwSM3XHCPA/mfUM5ueQeRzfl0=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=OnE4OAtVQvHkEgn7COXc/Xz43ogW8WE4zNFJArHILFLT3d+RmejRFidOqpfhuANFP a73lqLzSBV/UaFghgyE4KjC0DLE91fSIoZs2h5YqoC39blSro+NTnNdCVNQe3VVaT6 OnVY4WxdZ0Ok6hbWlGaJJDR6tHk/9yQ+6/tdWSTmuz9UwyZ+Ke3xFLJw+Bv7e6vog8 bF0Bqo5JBoHgpLwJFQqIFoB4qWZRZRQt7oApg7OtjO5yPPqHtY3OTaIhub3VHJKw/Z Alwm3Vi9gKYMRcCmhKtty8yqP1io0bjo80tl3nIfgnMGms1MYzux1N1LJbYnXoMJgT U6mL6jiBTfPmg== Message-ID: <04d0e88d-b5e3-4a97-b0b3-d72a40c01cf0@bastelstu.be> Date: Sat, 1 Nov 2025 23:26:22 +0100 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 To: Larry Garfield , php internals References: <13830641-0fb9-4de9-94ed-8873045ef820@app.fastmail.com> <5db2eea879a3bb5d9788a580f9588276@bastelstu.be> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi I have just went through the RFC again (the 2025/11/01 17:54 version). On 11/1/25 18:54, Larry Garfield wrote: >> 4. Constant expressions >> >> I assume that “nested” PFA will just work? A little more complex example >> would be good, just to showcase what's possible. How about: >> >> public const BASE = 10; >> >> private \Closure $arrayToInt = \array_map(\intval(?, self::BASE), >> ?), >> >> My understanding is that this should be valid. > > Mine as well. I'll add that example, and if Arnaud corrects me we can deal with it then. :-) Small note: The example is missing the closing brace for the class. Other than that, I have no further notes, am happy with the RFC and plan to vote in favor. Best regards Tim Düsterhus