Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119683 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20108 invoked from network); 10 Mar 2023 21:55:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Mar 2023 21:55:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C52721804AC for ; Fri, 10 Mar 2023 13:55:55 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15623 212.45.192.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mail.gna.ch (mail.gna.ch [212.45.196.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 10 Mar 2023 13:55:55 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 971763A1DA1 for ; Fri, 10 Mar 2023 22:55:53 +0100 (CET) X-Virus-Scanned: amavisd-new at example.com Received: from mail.gna.ch ([127.0.0.1]) by localhost (darkcity.gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gDSjckPwJ8MF for ; Fri, 10 Mar 2023 22:55:52 +0100 (CET) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2ea4:cf00:1967:a026:3226:fb25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 876E13A0FD9 for ; Fri, 10 Mar 2023 22:55:52 +0100 (CET) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Date: Fri, 10 Mar 2023 22:55:52 +0100 References: To: PHP Internals In-Reply-To: Message-ID: <9975B833-EE24-4ED7-B28E-841B92988BA0@cschneid.com> X-Mailer: Apple Mail (2.3731.400.51.1.1) Subject: Re: [PHP-DEV] First-class callable partial application From: cschneid@cschneid.com (Christian Schneider) Am 10.03.2023 um 20:04 schrieb Eugene Sidelnyk : > Another simplified example: >=20 > ``` > // partial application > foo(bar(1, ...)); While it is not as concise as your version I think the work-around with = short arrow functions works ok unless your code is full of partial = applications: foo(fn(...$a) =3D> bar(1, ...$a)); Regards, - Chris