Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114467 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4976 invoked from network); 13 May 2021 19:35:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 May 2021 19:35:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 869431804B1 for ; Thu, 13 May 2021 12:43:25 -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, 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-io1-f54.google.com (mail-io1-f54.google.com [209.85.166.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 ; Thu, 13 May 2021 12:43:22 -0700 (PDT) Received: by mail-io1-f54.google.com with SMTP id k16so11940287ios.10 for ; Thu, 13 May 2021 12:43:22 -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:content-transfer-encoding; bh=GTFE20+gV5v7a0sJoQpdSpMysH6JEU9bV+jBeFxi7Vw=; b=ZfjbwyUo4OFac9RmkexC6yAJB8oTN5pJt3f3ejUtA5hzUGleg2l/jLn5duJvjtT7jT zqVhd/FlqIz4g3b2KiBDlk81+TNURdgzEWvxDJ4HFbQZrg8osHizOkQ5ejj0wWFJBE8b J93yTMz3YM9mq6QGQolCPGBAIkk43HPBd9rfTrgH4E8VebZYDIptEiSp0FWOrIVWBKrd dhK04Y2FSdU6t2VS3dIC6K9RklZ/aDg7viG62y62ekmXtwwx4fmt7pXy4DKmvbwv2+Vv W1h9GlWTVR/znapaVwjEJqVIvX6brdCgDY8Eni86XHflwtpsALckfmqTr9XGK5ZdnQXb mQDw== 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:content-transfer-encoding; bh=GTFE20+gV5v7a0sJoQpdSpMysH6JEU9bV+jBeFxi7Vw=; b=ua1XDoz2zueBk9w4FyH1/8p8Fl+DE8jGkxtRKpZM54jwngGq+OoZH87Lob+Wdt1BDi P60bL7rdQ4zfkviLidOuCPH77nhfZbcS4W6ES1xhRKY0tX1sWiKwGcloy7A+uw0wjXGZ EHuLcrgT3O4nRTR85gfp0C25LoLs+H1UBaT33Sg3WZklZTT3VFe8+iX3nUIgnN9rsach QJqEID1RtamPgx3GXFP5C1VHOWKUSPL86cbArl0oOxbEqjQApGoOvJ1sAqEuqeZfz6el phKH4Dmu8AiYtQEYiA1BHm3C7W3CDmwb0+VaQc/fG+JDDgEyrmU2G23Hw0mq4tmfdy+X Srsw== X-Gm-Message-State: AOAM533GiUKSAoYDcRmhDAFKK8LRAqSqW02Mhetia6AiawKV+1zdNrkF 2Jo8+a4RJMBxCZSMQnid8b5OrT/O+umEqKOKZw== X-Google-Smtp-Source: ABdhPJyUcnVhTDpnb78Q+OmPfMl9GXx/OaafvYHKFVXq5nO/OAqM0kG98hjCIOTdEaSZHRNoXGE31ctBF7oisDoy8EQ= X-Received: by 2002:a02:7049:: with SMTP id f70mr17686924jac.62.1620935001214; Thu, 13 May 2021 12:43:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 13 May 2021 12:43:09 -0700 Message-ID: To: Larry Garfield Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Partial function application From: paul.crovella@gmail.com (Paul Crovella) On Sun, Apr 25, 2021 at 12:27 PM Larry Garfield wr= ote: > > Greetings, Internalians! > > I would like to offer for your consideration another RFC, specifically sy= ntax for partial function application. > > https://wiki.php.net/rfc/partial_function_application > > It includes an implementation by Joe Watkins that is already about 95% co= mplete. (There's some edge cases he's still sorting out, but all of the ty= pical cases should work already.) Most of the design work comes from Levi = Morrison and Paul Crovella. I helped out with the tests, a few edge bits, = and general instigator/nudge. :-) > > Discuss. Regarding "Comparison to other languages" and "Syntax choices" - I lifted the design and ? character directly from XQuery, adapting for PHP's variadic nature.