Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115216 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37361 invoked from network); 29 Jun 2021 17:10:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Jun 2021 17:10:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 065211804CC for ; Tue, 29 Jun 2021 10:30:40 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 29 Jun 2021 10:30:39 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id a15so32993474lfr.6 for ; Tue, 29 Jun 2021 10:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OeZHXH4y21ugX4cclujfH4vx8SuTCDloSbCx21c4cZw=; b=tnBgjc+O3U/5Us5Pr0FZAaEV2CEe6S/c6C6vFpjaQ25pOt3C5CPrbR60l3gv9SsDlo vCUP7gNIFSemZCEDrw8rTKXmKUA1czgVtfokRqS6qlOgi0MPhWZ15dcSF9RVAVLuixj7 FcPWOVKAkgj8dQNyQALcV8s42SSW0mrO7MNG5ZFb5I8oHgA27+F9kZttJ6PEyf0JYneH B7rqRTLDlyssraSmxuL557gRSq0b/CvOMxazxL+656i9n73eYKXXPsF0HwAUvRrhKUEi +MX8m239fDfW+HE0GgEYqYW5jmLqZJygiHqOeeN4NSLmUz5lsYEhQ7KViB3G8uep1ybk Elfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OeZHXH4y21ugX4cclujfH4vx8SuTCDloSbCx21c4cZw=; b=bs0RdV8mguBh5Y5lhu1AB/o4shay2aSxQFYLbWRO6kTJVgL7sIbijMaAbtAfW3VaaW s0G8E8e9BLXRqS9vcJ/PrHfgXn6QEcc/hHSQdvOyNXjW6sGOuMyOoaNGS6sp4TKTncb0 PpL4Qu8pPUpqpHXILvV1cpI6SLfAtFSOZ2LZeXDwd61o8n1KkoAcXkreh88La9uJG/TW fT+12BO6iEsOp7Szra6yDDNLLfsljRLgbSikQKp7JqDUp1BUpfty7arrEclbXk/0Fkqj YnQnq5Ma1XO1AY2a3JQSceWz6STmutWsITRFDTW8M5SyWt0Zv5RwSQwJiqGIdPYPOi0O 8BUQ== X-Gm-Message-State: AOAM531ttiZgXziE/KHZ2bzNVZmsx/wzfw1cNabnHz0jsH0aCrC2ngbZ 8ckvh2KwlaGMBOgSAIAnXZWemOzAM3LM+4epbQ== X-Google-Smtp-Source: ABdhPJxg/4QdMHR2mJyuXs07JwsWBJ/LzjSU5vQfDHT+tWcU8Znbyy3olSVKwIxZjbNmBpZ18sNFQWQcE1U4hdlrtpc= X-Received: by 2002:a19:ef0b:: with SMTP id n11mr23968214lfh.119.1624987837236; Tue, 29 Jun 2021 10:30:37 -0700 (PDT) MIME-Version: 1.0 References: <222b3921-3d9b-47f9-8d13-e6a123f36fad@www.fastmail.com> In-Reply-To: <222b3921-3d9b-47f9-8d13-e6a123f36fad@www.fastmail.com> Date: Tue, 29 Jun 2021 19:30:25 +0200 Message-ID: To: Larry Garfield Cc: php internals , nikita.ppv@gmail.com Content-Type: multipart/alternative; boundary="000000000000cd8c3605c5eaf6ca" Subject: Re: [PHP-DEV] [Vote] Partial Function Application From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000cd8c3605c5eaf6ca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (Extracted from the "Pipe Operator, take 2" thread) On Tue, Jun 29, 2021 at 12:54 AM Larry Garfield wrote: > On Mon, Jun 28, 2021, at 5:30 PM, Olle H=C3=A4rstedt wrote: > > > Would a slimmed down version have more support? How about removing the > > variadic operator, and let the user manually add the lambda for those > > cases? > > I talked with Joe about this, and the answer is no. Most of the > complexity comes from the initial "this is a function call, oops no, it's= a > partial call so we switch to doing that instead", which ends up interacti= ng > with the engine in a lot of different places. > Are you saying that the implementation complexity is mainly due to chosing a syntax that looks like a function call? If yes, is it also the case for the "First-class callable syntax" RFC? And does it mean that a different syntax (e.g. with a prefix operator) would result in a simpler implementation? Regards, --=20 Guilliam Xavier --000000000000cd8c3605c5eaf6ca--