Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114536 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 39521 invoked from network); 20 May 2021 15:45:16 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 May 2021 15:45:16 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 900131804F4 for ; Thu, 20 May 2021 08:55:18 -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 ; Thu, 20 May 2021 08:55:18 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id w33so17319695lfu.7 for ; Thu, 20 May 2021 08:55:18 -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=LJ0R9zJWtaCxEOWmbG01XJ6Lcd1rnn7zw8SEwEscBF4=; b=EX2qPr/bQwAkIsqrPJYcuPO69YH64XZ7QAhmhwr49tZIgSsP4NnIUvRXIZjJ7dUzUO +UTFfxJPlWeaUqyirQiU4pP8qW0EX+9v/wSz31VStt01zMAFxwxZCAEyuqY+qOrB77Yq +telUscyW02cjPDbdDrpyAhQif/2D9jmskWKWK1vLbEVeEeiSYNQCf7f657iD6FUdfI7 q6U0Oftj9g3kWJCO+wPPNXrlDmArFdbQCEdCBGBGY72V1Pnha+4Qoyi3hNuYJM5mua0s xE3/a+uz6APyDMdiyA1x9/Wb742OYxpqoLBbojvvpL77o2L00+huXjcCdru/9SLIwDJ5 wppw== 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=LJ0R9zJWtaCxEOWmbG01XJ6Lcd1rnn7zw8SEwEscBF4=; b=I5XtY4ayfdGhQPsGW/etVQC1hePAXoy1nmbCvxfBgTOc176zXwVToidoJGV75yVLHv sC+8QjRI/dliDwGkfN53eCxh4d1CgNezbPdCHq4oxOEglPQVxxDYx2yKl7YChpD++rWE 0Qqs6AEm0KzY1S0RKyKL1p6lvV+4wPBw/9Xy3FBmT3d4cfPY+s6N8MEwuJ7UMxZc+qvd VoIlodwred2EeZMbco1Lm20mNaqsaRHtZs6ecK0l9qWueHf20ZPaVE1yj0yWRuknw0Vu 5LCSE3zIRhHSxCEY5isvdfnXQvB56+OQxxz3S6ku+cadw/SNEYUPDvYV1OTgLHBYE8WR ADkQ== X-Gm-Message-State: AOAM532KAM5iWcZIsx9G5dMuGc7V/bsIMlbNTmePXjxciGX8Z6s03xGD yOJ6FLEjKmyz17zYZAGUbSMm9h7f8b/280LRiQ== X-Google-Smtp-Source: ABdhPJzenCXCAYgCF3rnQ1o5IRUWon2LLvIXS7oIqvMvAMw8p5l2bTs8OYFfOu4Hi1fl4TkuJ0i5ATqLRwQuKRZAvtA= X-Received: by 2002:a19:4919:: with SMTP id w25mr1194149lfa.124.1621526115947; Thu, 20 May 2021 08:55:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 20 May 2021 17:55:05 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000022999805c2c4f8c7" Subject: Re: [PHP-DEV] [RFC] First-class callable syntax From: guilliam.xavier@gmail.com (Guilliam Xavier) --00000000000022999805c2c4f8c7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 20, 2021 at 5:12 PM Nikita Popov wrote: > On Thu, May 20, 2021 at 4:16 PM Ond=C5=99ej Mirtes wro= te: > > > Hi, I=E2=80=99m confused by the syntax, when I read it, I think to myse= lf =E2=80=9CI know > > this, this is just a method call=E2=80=A6 oh wait, it=E2=80=99s actuall= y a callable=E2=80=9D. It > > really makes my head hurt. > > > > Yes, I can see how that could be confusing. The current syntax is chosen = to > be a subset of the partial function application proposal. However, I woul= d > also be happy with some other syntax that makes it clearer that this is > acquiring a callable and not performing a call. > Hi, several other syntaxes have been proposed to consideration in the PFA thread, and I wouldn't want to start new bikeshedding here; is there a place that would be more appropriate to gather the possibilities (like a kind of updatable list)? Thanks, --=20 Guilliam Xavier --00000000000022999805c2c4f8c7--