Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115217 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38961 invoked from network); 29 Jun 2021 17:17:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Jun 2021 17:17:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5BB9B1804D8 for ; Tue, 29 Jun 2021 10:37:38 -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-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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:37:37 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id n14so472458lfu.8 for ; Tue, 29 Jun 2021 10:37:37 -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=UCEEBM12qneE5oLKkMO1IwYcTuEj40+1PYzJZAyfmM4=; b=LI61NC2ZRlNzHYsavAHoLdE5cc1YSk74r0JUPF3nFVYcZJ5C6LJq4hPu7nz/+Bh5Bp 5XVgjShQltPVCKEfZrDwbLDMQqRnDFHIGgxj5tlwah7emSFdc4UTF17bAs042a9nYhIV PdjqhSRmOI/jVNrAcKXFABRWjTJj4n1tV2rcsQJ/Kq8CuerabT65gWczAto0H9jD5hJn 9peWE8i7CJmHF0CjvT1FZR5n00/cypyrUqi49Hs/qqDPlww8yMlgg+8gB4II4cB6THlh Jn+7Pd232O2sgZUrhDCVJ+heLk/jCbw8AGk/id+CqhOmW/29Emd1svxFIyS4tbGCz1uq I8wQ== 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=UCEEBM12qneE5oLKkMO1IwYcTuEj40+1PYzJZAyfmM4=; b=qGOdemOvHntzQIsG0UtetyTzYpjqC9ONCTz3zVjbeUmzlkzylrWX3K4V4bMHItMKp3 ez5KqgplFRwzhi/RLqt/9KYnPAsbWajSWZpkd9FlWqkojD+Mkf9h0JRB5uNORWkrTm9h SGrqIjAEIS+S3moQ+Wu7agJVbwZqtK5K2g1Ih7VgLODksGtJIlMbq0OW37ek0HO/r5fp u0U/30g/rJNE9qPmxl4JCaXs4on1EmAtx3OYX0P2q6EmOnbGa/UnnD2fsB7DdlKjO+Rf gvQgFaUH7bXnK2k4tiJ+pM2joRVn/xZii63oYwCBQLO453QQ+6KYdk/M+KlYnjk53+cQ jcbQ== X-Gm-Message-State: AOAM530j+QZOlOzVyC1bTJRqGXJ9OhgtNVLCmjCtfnh21IeQtHuQ7b/r G1gVtvizJWF3h37rLcf7JuwTRXeQfB2NJhIcag== X-Google-Smtp-Source: ABdhPJz7PQiHR7Tai2w2i0AaJytxaBN1o7B8E5Y9uqgY2DqH+xI0opCTsdA0vGZZoL2yjRVdH6BGyeLmWIHL/vuIUrI= X-Received: by 2002:ac2:42d1:: with SMTP id n17mr23433475lfl.650.1624988256207; Tue, 29 Jun 2021 10:37:36 -0700 (PDT) MIME-Version: 1.0 References: <222b3921-3d9b-47f9-8d13-e6a123f36fad@www.fastmail.com> <20210617100152.166bfed6@mcmic-probook.opensides.be> <39d4b486-a373-4233-81f6-649567f93c57@www.fastmail.com> <20210629110407.7b390147@mcmic-probook.opensides.be> In-Reply-To: <20210629110407.7b390147@mcmic-probook.opensides.be> Date: Tue, 29 Jun 2021 19:37:24 +0200 Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000c687b105c5eb0f6e" Subject: Re: [PHP-DEV] [Vote] Partial Function Application From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000c687b105c5eb0f6e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 29, 2021 at 11:04 AM C=C3=B4me Chilliet < come.chilliet@fusiondirectory.org> wrote: > Le Thu, 17 Jun 2021 08:30:43 -0500, > "Larry Garfield" a =C3=A9crit : > > > > The ? character was chosen for the placeholder largely because it w= as > > > > unambiguous and easy to implement. Prior, similar RFCs (such as the > > > > original Pipe Operator proposal from several years ago) used the $$ > > > > (lovingly called T_BLING) sigil instead. So far no compelling > argument > > > > has been provided for changing the character, so the RFC is stickin= g > > > > with ?. > > > > > > The main argument for $$ is to be able to have partial methods with > $$->, > > > this should be stated in this paragraph. > > > > That's not something that was ever brought up in the discussion. > > Finally found where I read that, it=E2=80=99s in an other RFC: > > https://wiki.php.net/rfc/first_class_callable_syntax#partial_function_app= lication > For the record, Larry replied on this subject: https://externals.io/message/114770#114785 (second part). Note that for `$$->foo(/*whatever*/)` the signature couldn't be extracted (because the class of $$ is unknown). Regards, --=20 Guilliam Xavier --000000000000c687b105c5eb0f6e--