Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114808 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55511 invoked from network); 10 Jun 2021 08:02:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Jun 2021 08:02:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C4811180502 for ; Thu, 10 Jun 2021 01:17:53 -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-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 ; Thu, 10 Jun 2021 01:17:53 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id n12so1815409lft.10 for ; Thu, 10 Jun 2021 01:17:53 -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=a86TrcIVf4SQVe9EEsR2mNVvFnzmzpxi8z9oVs5LQWk=; b=uQ/thOYSsRB7JL44VZhQwXMgsg/rL94YeEqsFK47JF7hoG8Mp8CvmS3cLcfocL1wLk JuYu7VKjO7oIoYcOAaIW4CuSFL4RAqtIDnsLje//5+JI6PsiriCucPQijupQyxwmPh91 Il8oCnDoxyCsPRMk7nIC/cb6WjpYbPJ+SRlU9fCdnekweQHyR/IYMyd9yRgi4jX4EEAf 7fEmlvld2pLWs6L97+9ErJRdpvK2ihpqVUs1Og0mvg+zupErcE45aaCsLNO/GGS0ON06 Bv7lnIeUHpXnas16lgGJpk1i+twMDo8MTqvSpaYwlM2t2NkGbuDmP0vLPCOB28RwEQLo Xemw== 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=a86TrcIVf4SQVe9EEsR2mNVvFnzmzpxi8z9oVs5LQWk=; b=bN4dJlsg/EEJWlE3l3QXeeKUwrjbRd+3kpr8o23qMpkRaaKzf9Nl1+8KwezmnV7VJA L800CR3FFRIcPfilq51nixAzZ4qbjS56zq/7Jm02iWw40NLq0z7M9+xjTUhxSNG8EaYk WjBeV0BM75jALukY+83rSQJS3EuXcY0jFrrJOTbH153jl6gHEGnL+YP+58Xhnh0DdlZN o1iscK3hqL5VKcC0NrNTb/hTLUp5l3vxzD5KdfxsiLfOTlanlFtHmk64q/dikOdLYTmS KJfuaUwWntCsyrmxKazQErYwi3zh2CJdL0XN1OIwF7j1ciq71eWIoaZ9kD+6rzHtSvON sD4g== X-Gm-Message-State: AOAM531cP3YovWl48Lah6r3xq32Hz1aQe1IaTrBuQt8FDIGBp7XaP+nG 9WcM9cMhE7+FJWFB2OZs/Ruy+Ovl+fnibOAHIvin5A/uZVn/qmM= X-Google-Smtp-Source: ABdhPJxyeUcYwek9LL/5jNb/MxcOMApXtR6qmk+bJwu7Kbz6Oqb3RoNA0wIhbxRDRS7N/fSdsxk4Pg2NCa3dW/tkfg8= X-Received: by 2002:ac2:5324:: with SMTP id f4mr1165441lfh.124.1623313068595; Thu, 10 Jun 2021 01:17:48 -0700 (PDT) MIME-Version: 1.0 References: <9adf063b-2598-4dd4-9e2b-cf2cd4f53b86@www.fastmail.com> In-Reply-To: <9adf063b-2598-4dd4-9e2b-cf2cd4f53b86@www.fastmail.com> Date: Thu, 10 Jun 2021 10:17:37 +0200 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="000000000000d01b3605c465060b" Subject: Re: [PHP-DEV] [RFC] Partial Function Application, take 2 From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000d01b3605c465060b Content-Type: text/plain; charset="UTF-8" On Wed, Jun 2, 2021 at 7:47 PM Larry Garfield wrote: > Hi folks. After much off-list discussion, iteration, and consideration, > we have a new draft of PFA ready for review. > > The URL is the same: > > https://wiki.php.net/rfc/partial_function_application > Hi, thanks all for the reworks! I just thought to something: does it support nullsafe calls, e.g. `$foo?->bar(?)`? and if yes, what is the signature of the Closure when `$foo === null` (and does it make a difference if, inside a function, it was created as a local variable `$foo = null;` vs received as a typed parameter `?Foo $foo`)? Related, for `$null === null`, is `$c = $null->bar(?);` / `$c = $null::baz(?);` an immediate error, or only later when calling `$c($arg)`? Regards, -- Guilliam Xavier --000000000000d01b3605c465060b--