Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129011 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 7F04A1A00BC for ; Thu, 30 Oct 2025 19:53:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761854021; bh=GYm7hoTxkcbc+n7GKPsVB/ctegY2TRpLN5zSwe9BFE8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=me+32l92USJyDf3XzcK10Oik6U6noWaN4rrexUTNx0xExKxAZaLlcJP/P4vTMykgj OXhlmtnGijFpOwsC1qrd7O0HJizxRFS3hKvAh5Ak3XtAeOq+DV2d0dqNrRKTKzGlxp Y3r2TW+xGh09jcqnQYozmITGp8lFwXhn2RPLku0+W9CGNkmWi/sPawTxwhcuPQH9rW ZWbX877ELHLeocLPYxlsAr4qHmHe9Lq1uSdaJm2gSWa29m1WSk+J9bKFemt5YH6mSD qAN76cbEuUoJJHyp7lVaoaLTiOa/Eie9a0vKliLXOInrqetLQzrerbhVCzrmbYc8cb KIESkeF6ZUtCw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1F43218053D for ; Thu, 30 Oct 2025 19:53: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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 ; Thu, 30 Oct 2025 19:53:39 +0000 (UTC) Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-63c4b5a1b70so3166099a12.1 for ; Thu, 30 Oct 2025 12:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tideways-gmbh.com; s=google; t=1761854013; x=1762458813; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/vEgFm445JZ5mbG5vdtIYXPkijTUHXjxNcDpl1qc6jY=; b=goVqZKtH40jJfl6YIQ2yGw+zYLVFnwoFRoFA3ce07dmzIb0bERHuSAI9gjr5X2ulwI RrRGV4ZwOIxSydXoivB4BN1qfHDEDQ6JaGZs5rx5/sfFeCytQs/TKIraACpxXAnW4jp4 6SadonpC2BqOh4wwq8365gcpQuvj7GvpDTJ27fIfaLowTV/xkmSvWwIwbv8jKGwNcK7R tbqmQPMAlHvjGaay3vpU9ncxz5Uuay5ggS59w1B17RT8Li+9msdel1ctap7hH1tdIO2v FIErvLiaqCJvKoYP0ccNKDU//cXqfnaFRov5/xuSqcFQTW9DCBT/i8zCCXSPbk8Z1ZCp yt2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761854013; x=1762458813; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/vEgFm445JZ5mbG5vdtIYXPkijTUHXjxNcDpl1qc6jY=; b=jur9ZZhI4qOahoHYWi0i1KXePTwpDGDpOzoEE/c2cA5dBKzgo3RCo9rPH3WFyD8hIQ wxs8KgF1Id1T5Fn4wy3MrIUs3VmLsYvHaz701zh1qPhfynnxBlnOHZTyVVDcrJtXHqHV wdUvGLYbRwd4dEuxNeiseyroXzJb3oRu+ftTKwL7l3tJDEbKQhZdnaV61IFLlej2qM6n xGXvTxrcta3z0ppA/2IyGB0WDu9FXonaB9OdWgH7qolAfJ+ygUxwR3qXyz84gIJg06Q3 SACHSyoQFvXpzL65eFWPGF3HzcfSmNfeNuMdLaletoAG7d6KguBqNitYeOvpYARSZ92l 7iww== X-Gm-Message-State: AOJu0Ywb2g/x69n+XJxWW1vdMhk79pjyekVLv6tGcuLVSCunuvx1Xlby fgOzw2DbAPlSGoCTVeSn95/6hN+qBhgAzFz4VjMXzgeWkJbENGf7sqnlLHnrNik6UP53xsfUJ/a HBN7ZllUruUds9+C4yVxsH2BfgkjchxeJWCSnl4VyGvEtBJIxrHHruUk= X-Gm-Gg: ASbGncujAqiBrzgXAcARAjOnbotE2j2wMr1O0707CcEmtM2VWVKbs5nH+1QgsWJ/Io3 8/w6c81x18ycA5By+IJwKwrWVp0xBgNqZq7R8Rr1ryMdkfWleOSjTg4l2RxiiQWVuaaLfsA8hXg TZRKtanyBeaOCMBTdR2g+GChvoApaA9A4mPIQ3DlkZuF3oepdgjIPq90VwIj6gH3xjUM7T+GnDe W0a9oZw+Vd1WmU0vklH3r5zMy33tw389r3A1dqu822rukKuVLOIkUHWN0PKpdQ8Qx1fWs0XllV0 EdzhC87+CrMgKSI= X-Google-Smtp-Source: AGHT+IGdtn6Qd9u6B2YkucbGg4f/QZv26Yr5eB913/WwlrFC1NQAEJruBjE5GTB8fYDRx7ESZSAeQmCxQ2EZndLiVIA= X-Received: by 2002:a05:6402:5188:b0:636:240f:9ece with SMTP id 4fb4d7f45d1cf-64077043d20mr595685a12.34.1761854013432; Thu, 30 Oct 2025 12:53:33 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <13830641-0fb9-4de9-94ed-8873045ef820@app.fastmail.com> In-Reply-To: Date: Thu, 30 Oct 2025 20:53:22 +0100 X-Gm-Features: AWmQ_bnzPMBiC8MucftBP5l4LWrg4SvWomGzrnh52GtL63PvKSLlbXGKaJ04tIQ Message-ID: Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 To: Larry Garfield Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: volker@tideways-gmbh.com (Volker Dusch) On Thu, Oct 30, 2025 at 7:46=E2=80=AFPM Larry Garfield wrote: > > On Thu, Oct 9, 2025, at 1:54 PM, Larry Garfield wrote: > The one outstanding question is whether we allow reordering using named a= rguments or preserve the underlying order. Arnaud says either one is doabl= e. So far, only 2 people have commented on it (favoring reordering). We s= till want feedback from more people to see if there really is a consensus o= ne way or another. (2 people is too small a sample size to draw any conclu= sions.) > Also, if anyone not named Tim would like to weigh in, now is the time. :-= ) For what it's worth: ``` function f($a, $b, $c) { echo "$a-$b-$c"; } $f =3D f(c: ?, b: ?, a: ?); $f(1, 2, 3); ``` I expect this to print 3-2-1, intuitively. "c" is the new first parameter in the "function definition" for me. So count me as "reordering". Kind Regards, Volker