Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128866 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 78E051A00BC for ; Sun, 19 Oct 2025 14:51:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1760885500; bh=t171oFfRaU3WRIEOdOfEwe6LUbXOWXvFi2pMKQL4qkQ=; h=From:Subject:Date:References:To:In-Reply-To:From; b=Grqi4OS5qSoi5Y53v8hMsW/KOPLbdpfixdPlUc4mCaApUGM/yy8p1Ey9CXWBj+Vg3 8WiAgNoELHmhDAgiLoL0RIYlBKmU/GysUhcln0O0jDG8qDwusl71fq+FReVR5umvIg 3vpSE+wjI3VWEUnoIAcvbBTDhLlSa+vVZ9B/dORzF/FNSoCnKajQpf+rrTphT0k0uq AaPMM2pokQyV6MOgyaCcERMMsj6EKktb/ZaKM9bmxhTHuZv2I/6aog512Tru+aAj8T sJF5njVrq/1oBBWCWzs4WziwwDLO10cEQLkHRZKm4iXNsXWAPBzCtbH71RdbM2NqBW vqvKdELk4dOSQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 16EFE180055 for ; Sun, 19 Oct 2025 14:51:39 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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: No X-Envelope-From: Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 ; Sun, 19 Oct 2025 14:51:28 +0000 (UTC) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-b4f323cf89bso744117766b.2 for ; Sun, 19 Oct 2025 07:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wcflabs.de; s=google; t=1760885482; x=1761490282; darn=lists.php.net; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=g/vztgmkJVoG6PHZrzR+AyuTTnyfkubB1RyIBeGZG6g=; b=C342IscXdyIMgFglndbBypwevYh+Na4zINz8zTXknEOdpHnmmatNkKEjlf5TOWScR/ JN73WnMOAhDzUa07eDWz+LeVNtxYQ2qFjbJl4AKyJXYP1iEuEnZ08j1sHEkypc5jOoI4 3Ll62uY8BbySvTlRE0DEoGJtD15ajecdGWpZK2evfiynr5VPgq0E4DC5m7vLDKphEaj5 s3Ka9yIYc+E7PXKnpJJf39usoUu++UvQXhb23E9bYdAyeWo5NjNcH6AhN2ECWXcJkXPN 5Jbp4A1SPsNW7sQUJX1cQpslPq7WNse/lUctlmqn4PM3htvNwm2aoSe5RMjhqV0SNj2B YX5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760885482; x=1761490282; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g/vztgmkJVoG6PHZrzR+AyuTTnyfkubB1RyIBeGZG6g=; b=GSml0Pwu/xr+yDjtpR+8vXz43VqlXQgA+99ROL4nY1aM0XgWSYzC3SSUX9rddjcRFm YbOId96aI3tiammElzZ0qixJAEWwlsAt1gplA6MKCvvqfm7udDPpiBFwEALIl6e+Sq0y DtOAo7iF1lWAcUppA0K3zlcW6+ztVsVKrTm/Ch/+CUhZzjjuuL0UcPNI9VXYx9BCoMlf s86p3LbG0GnhebcrX4hodru6vGNLkF7/n9PIlk/vdiWGdV1MqXyWfoJe1mJ2aFQwGQ0K MvD79ZZzuUFFHrD0vOe3435pGZk5OnILfKC6k/FH085JmI+r4zlDa5xPOqf0ZTkz0ZQy HJPw== X-Gm-Message-State: AOJu0YwJ/0i3fsIqHTWJh8kldCdptzg3pOdpVhviZV3TaYIaVD39dAvn H2F8JTqBqeyyPL8c6uPCOhHVbMwAJ+RChs9s9lMfxekTzicPgs8AX19o78+14uFNwrWlHsXJcSu 5Th8w X-Gm-Gg: ASbGncsbMK3PAbBDcGajrFke3YxRCwxXwXtqhzsmYrZidBcPFIQABIt3Geg77z9GwXq oI1SYWGyLkhqK+s3y+5iPI/6aEkOPZGX4PXv0jI1MZIwIEKGZ5/nXGyeKTZs+QQKqvTwOboandf ev/Nc9AIF6OE5tvBOGiaSxQ1SGXucDCpiLcoq8f+25tU736XnDvii2XX557T8kCruDKDsrbS35i 2y5R8F1lrj5vrQC8nsx01hzUsXlXhTLTqB18VLVhyvXGJpqxawIbyD7LSbcjiis87OJ3tjdi459 Hnl+ahtt51cD5WIGtDqh91/tBxihLI08AERNrufIZHaA9llDf+tKh7D4Zrg7lVI84/SvKtOxADT 5P9wcJjzoEHjIkFShtP0EK5LbCipAJIlG2TsGuwHnqfGWRLIW9ojc+hkbyqeJjlD8c0+byrjV7j P9Ow0WmNslWZOSWqnewWNzwdvMKaf0srO3KkBQVjjPOf9BYG2WB4EmIe2I5Hx2xkc2xal0SN3Zd 3v3hTs5AWZj5LaeuXp+1lQyMqTPgxYbZxEAnQ== X-Google-Smtp-Source: AGHT+IEIJQJT3NopY4k3SUm3GNFj3rhzd/YI8BSKwidZTtU0Sl9oXGI/6hELxsYd9J6vfNVKdLzkqA== X-Received: by 2002:a17:906:f594:b0:b57:2ffa:f17e with SMTP id a640c23a62f3a-b64731447a4mr1264146166b.19.1760885482536; Sun, 19 Oct 2025 07:51:22 -0700 (PDT) Received: from smtpclient.apple (p200300e91f21bd77198bdb2ba0c31075.dip0.t-ipconnect.de. [2003:e9:1f21:bd77:198b:db2b:a0c3:1075]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b65e83959f0sm522216466b.25.2025.10.19.07.51.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Oct 2025 07:51:22 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\)) Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 Date: Sun, 19 Oct 2025 16:51:11 +0200 References: <13830641-0fb9-4de9-94ed-8873045ef820@app.fastmail.com> To: php internals In-Reply-To: <13830641-0fb9-4de9-94ed-8873045ef820@app.fastmail.com> Message-ID: X-Mailer: Apple Mail (2.3864.100.1.1.5) From: josh@wcflabs.de (=?utf-8?Q?Joshua_R=C3=BCsweg?=) > On 9. Oct 2025, at 20:54, Larry Garfield = wrote: >=20 > One outstanding question is whether to allow reordering of parameters = in the PFA closure by using named arguments. With this implementation, = Arnaud says it's possible to do if we decide to. I am still concerned = that it would create too much complexity and confusion in practice. But = we're willing to go with a broad consensus if it emerges. Hi I also find it confusing if I define a different parameter order in the = partial function and then this order is automatically overridden to the = original order rather than being used. When I consciously change the = parameter order, I expect this order to be preserved in the resulting = function. That's the behavior I would expect as a developer. Cheers Joshua R=C3=BCsweg=