Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114504 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5457 invoked from network); 17 May 2021 15:27:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 May 2021 15:27:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2C3E5180507 for ; Mon, 17 May 2021 08:36:39 -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-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 ; Mon, 17 May 2021 08:36:38 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id o8so7840306ljp.0 for ; Mon, 17 May 2021 08:36:38 -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=kwb/YVGBzFUisT5dNam4OuqbeCEhfp9BxchoL2XGmIY=; b=YqQaVqrM0oMZ+cSEgECnsRstKYgLIQHg2pGNXuJhLsS9XiFV4UUjZpNTtS3eeHc/QU J/pMrgJe7e42NI3Oc5EHyKFeu9kVkqCtG/eKBYqmsdturpKM55o8NG1R7SyjaGOadNge bd5JBoyHaGkCmVTCVM90eU6dzX1RkzlsK+aTG7IdxyLVorAeydtkUXtR6N93HrruP0Em LO5cPIl9Sf714uYAGBOlstrbWYWkkKGALZkP2r022Trmu4A/LiZdaC5aNo6jfznoksMK CYMR5UDNNmsuJxHAd4IU/b3ohv1KGxAlLOW5Y4eGf39pEapc5VkTXhn/cTQxzm2vp0qy g4+Q== 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=kwb/YVGBzFUisT5dNam4OuqbeCEhfp9BxchoL2XGmIY=; b=BXR3tLNIJUbwBPB8dZ9C24SgI07GhNrjSxAIcVvrFoCg7+dwhQa7LyenoarhIpAISU 6huQ863iTl7HIRnKND98RiOR6D7tkd25dNihvwYQfthrEf42SEOiJ01SDGJ9SmA8tCyG h4/MjWyMmWAizZ0nWcMNsNERgV+g5KC5pdexTLckbMwsV+IyltHwzKBYK+YDIxzLlI7Q x4zj3ON+B55Tpq3qljVcZBqlcvA261T1DYNE1QB+5+VTlJAKW9KQfVDVlH0y7FaTJSPe u5Uv4AcKebkG0y69Zvgv3bhbhlGqXTnYHffJvbvQZ5v6l0Q3OLbsMgxBqOdAhIrJCh3D M7LA== X-Gm-Message-State: AOAM531HyJK+K3UWtxfEhWaFslK0pXAez7cLG+9g81S54IllOLqp6a5O W6v8z2dUpKoSuCMpoQNqxf8J8RueP9KbJOJNxg== X-Google-Smtp-Source: ABdhPJxlpsR1Sg/6pNMcFuQArkXtLe2OGphxPTfVfHt2QJDd6a+OnSlnxR65GjQ2GJsXaSoNp+wncH6/8XMjfn02xOg= X-Received: by 2002:a2e:878a:: with SMTP id n10mr51975lji.472.1621265795861; Mon, 17 May 2021 08:36:35 -0700 (PDT) MIME-Version: 1.0 References: <1565EB81-57B7-49B0-A47C-342E0088A432@trowski.com> <09B663C3-E21D-432B-BB7F-78312F827C30@newclarity.net> In-Reply-To: Date: Mon, 17 May 2021 17:36:24 +0200 Message-ID: To: Levi Morrison Cc: Mike Schinkel , Hossein Baghayi , php internals Content-Type: multipart/alternative; boundary="000000000000d94f9305c2885b89" Subject: Re: [PHP-DEV] [RFC] Partial function application From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000d94f9305c2885b89 Content-Type: text/plain; charset="UTF-8" On Mon, May 17, 2021 at 5:01 PM Levi Morrison wrote: > Joe Watkins has successfully worked out some bugs that also enable > more powerful behavior. Thanks to Nikita and any others who worked > with Joe on fixing these issues and reviewing the PR. > > The short of it is that re-ordering parameters when using named > placeholders is now technically possible. We will send an update when > the RFC and implementation are ready for re-review. > That's great news! By the way, I forgot to add that another syntax might also be clearer when binding a value to a named parameter, e.g.: ``` function f($a, $b, $c, $d, $e) {/*...*/} /* We want to bind value 4 to param "d" */ // with current syntax: $p = f(?, d: 4); /* or f(?, ?, ?, 4) */ // with another hypothetical syntax: $p = *f(d: 4); ``` Anyway, looking forward to your update =) Thanks, -- Guilliam Xavier --000000000000d94f9305c2885b89--