Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109743 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81893 invoked from network); 21 Apr 2020 10:28:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Apr 2020 10:28:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2B0B01801FD for ; Tue, 21 Apr 2020 02:00:13 -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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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, 21 Apr 2020 02:00:12 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id q19so13113329ljp.9 for ; Tue, 21 Apr 2020 02:00:12 -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=BWgcMZUsgqI6nhzKyPpv0X/56Lg8Z8UBwrc/lH33G5I=; b=j+e1SG6YvaMXjKHyeyOftPnSeykGufH+5ILPtymQkvnn41W/CQezU5X8DDrONrNQH8 Jn6/AH+O+CvU3t4Sig9nrWlbKZadSuIWRB28H4IHBIXySWJpjQBqV7izGqnT6q5qyMHQ k7oljZOywrLWFLpHDD7pfh09/6Jy1/8sOf4JX8HNThq4uSRGjvgyjqYGM63UOPsiXyv+ 28rplPjK/cDrQkuy+zLjfiy75o+qaBEiA2luIMlQh3LjD+83/68ZGG6j2W34Y3tIUxnA dgEzAMJksxZ44d+fbd3BYN1gUG6d8y7AiDFSpLIKts2HOuia+tt2yU32gsVPYTasFP4m S3mQ== 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=BWgcMZUsgqI6nhzKyPpv0X/56Lg8Z8UBwrc/lH33G5I=; b=hdKvOOp2Ti9krkw0mwUU7BAhR6s+7OZVzSVnVECkS/ufNoTOs30mJv6sJiVizdj0iC m3PBWIOH40KpVjrf0e2BDcIWDOb1N1stnx9gWZH1SEhXcGOsPRh+R74gfFZB8/goM/uh uOyIIQe9jqqNF9TgV4IqhePNFDus3sqBKZ1zkyIVZkIwm0U3iu8yIPIEE8h/el9yCCk0 7hmK73z8YeYArcG2fX8sw8j7Kaj75uNZTqj8aSgrQ0REHRU+TAaeRjGYejrAKV77RP97 ebl1G5jUEHXdMz68owRYg32C3yn+lTpGLam7cO7C4WPqqKubQi7iuyM7ViBX69D1QYad qy7Q== X-Gm-Message-State: AGi0Puafl0X4NJ1aOUrppJImHz1wNEEU/YIwrPURdp7xmVePoV+plDw8 qiNUXg9dQJO7Vl4cxiID1QvdLLFfaI9QxpIWZlCcgDr+uTFNug== X-Google-Smtp-Source: APiQypJ1EB2ePOWPvJ/TdtRgut0xlK8r0YsV4dWdttlX25i8KT6m6OUYAlNE8RI7vymOm5UmvWj98w1lSs0Qy/G4F0s= X-Received: by 2002:a2e:85da:: with SMTP id h26mr12559771ljj.260.1587459608369; Tue, 21 Apr 2020 02:00:08 -0700 (PDT) MIME-Version: 1.0 References: <2677cdc6-309c-4e4e-9cd9-12ff2a90c1e1@www.fastmail.com> In-Reply-To: <2677cdc6-309c-4e4e-9cd9-12ff2a90c1e1@www.fastmail.com> Date: Tue, 21 Apr 2020 10:59:52 +0200 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="0000000000000d5e4305a3c93edc" Subject: Re: [PHP-DEV] [RFC] Function pipe operator From: nikita.ppv@gmail.com (Nikita Popov) --0000000000000d5e4305a3c93edc Content-Type: text/plain; charset="UTF-8" On Tue, Apr 21, 2020 at 3:39 AM Larry Garfield wrote: > Hello fine people of Internals! > > I've been commenting on other RFCs enough lately that I should probably > put myself through the wringer, too. I therefore offer this RFC to add a > function pipe operator, as seen in a number of other languages: > > https://wiki.php.net/rfc/pipe-operator-v2 > > A patch is available here: > > https://github.com/php/php-src/pull/5425 > > Although I have one or two bits of it that I could use feedback on. (Let > me know over on GitHub.) > > It's deliberately a very small, lightweight, and targeted change. The > Future Work section suggests possible additions for later, but this is as > much as my meager skills can manage for the moment. > > My enormous thanks to Sammy K Powers and Levi Morrison for their copious > hand-holding in my first foray into php-src. > > *dons flame retardant suit* > I like the basic idea, but don't think it makes sense to introduce the syntax *before* we have first-class support for partial function application. Without it, you're forced to use PHP's awkward callable syntax, which imho makes for a regression over writing things the normal way. Nikita --0000000000000d5e4305a3c93edc--