Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109734 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81035 invoked from network); 21 Apr 2020 03:07:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Apr 2020 03:07:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A995A1804CB for ; Mon, 20 Apr 2020 18:38:31 -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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS11403 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Apr 2020 18:38:30 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 6D8D55C01B2 for ; Mon, 20 Apr 2020 21:38:30 -0400 (EDT) Received: from imap7 ([10.202.2.57]) by compute7.internal (MEProxy); Mon, 20 Apr 2020 21:38:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=++cTvd1tJmd/5IwTRv6wEqrnyLkDM +UCgEjCmUzZ09Q=; b=zTQ90pXMN3pvr6TOyA7zH2FQUBCsl5+oGCDreXl13DRhq R+r2Q1p5HiPN9pnR7DY5JdzMYIxHSZhgUJDxI3NRjXFyoo+OUgepfUQnefrzcgjq MLOkD8PdLDPQoqB7amNQRpWdC8rXF7K5eLmUjZH8i/5tpKvqlPaHuB7Kt7gavlwg STz+YHIvLpe7Sna/RAeFOaZ6xNK8IQDB2RjsUkbL7Dy56a6ArWifVJIPRmIGxgwA aBnv4sqcqX4x2kHdR1HfKPPWXyVb1DrPwdLi5ai39MG/xvmXSOceqcF3EkBufFy+ HcARrf5bkKMOvFdsMtw9lj6n1lfDLoN2aEIBFcUcg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeeggdegiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhrhicu ifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomheqne cuffhomhgrihhnpehphhhprdhnvghtpdhgihhthhhusgdrtghomhenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivg hlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1B671180091; Mon, 20 Apr 2020 21:38:30 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-1152-g08c8976-fmstable-20200420v1 Mime-Version: 1.0 Message-ID: <2677cdc6-309c-4e4e-9cd9-12ff2a90c1e1@www.fastmail.com> Date: Mon, 20 Apr 2020 20:38:08 -0500 To: "php internals" Content-Type: text/plain Subject: [RFC] Function pipe operator From: larry@garfieldtech.com ("Larry Garfield") 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* -- Larry Garfield larry@garfieldtech.com