Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109735 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 14003 invoked from network); 21 Apr 2020 04:08:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Apr 2020 04:08:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 84FC91804CD for ; Mon, 20 Apr 2020 19:39:47 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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, 20 Apr 2020 19:39:47 -0700 (PDT) Received: by mail-qk1-f174.google.com with SMTP id m67so13038908qke.12 for ; Mon, 20 Apr 2020 19:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=uSjaLda9x0TCkObaocTdg9aGSg4LnKFjYd6DxQO4kPc=; b=BKRzTypQ5PGc6BaAMQwsoJZY+2wEXDvVck7v64kGJd/UvfOYwhycpMbq9EDCY2XaVb q19k/v6I85oQ5Y99d6pcWyCz1gQnjFkOtf71v/H2SeKYnkz0ohWvgMSeanhtoy8vd6LQ urPImoolQiIoRglzAQJgLn730lfdoL+jyOHXS8TG7FmH1inVLzjUWguvBjRIKXtOAykm SJj4CeikMeys/0XtJFyyoXvnTx6BtQUV3Y+4KExpFB/p6wVWOLOpyxcPEmcHbTSGsJmd 8s3cvC1oHKNeOEqxXZ/1lol+M402T3XFMUKJmXFRm1uzgJzm0Xk/iYpjiWTPLNU05A4Q sTrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=uSjaLda9x0TCkObaocTdg9aGSg4LnKFjYd6DxQO4kPc=; b=TDVk2nxC7zC+FqPU5VLG7m3G2UT0Q5CpYWoRiR1Cng+CCaMot+uTT+tcdWiNJMgX8T EPV2jyv2JZpeWEqrvKlSfVTgRKVfBaEvX1DL0051xGvf1PxrJ4xSqfdvdG6DJN3r6SQS +bZjC/t2bTYbe0Egp+sWBn6QY7cqPlUz46sFXG+YTcinGZ7npYsZxLE5m1d8yekNL0is Sb7jPo8+jj0BXFqsMKIqa/oUfwwA6nZShYhg5eX7gi6OrQlPIF/7TksG0ZJrdRmDPMpI hGJN2WWFv7uRPdFYMrW8SzKEgGNjXP4MYaSK1jmwxfsOZ75J3EuSzxU0EQgGzN8EQnmR UEFA== X-Gm-Message-State: AGi0PuYbWMP2oHgW6nhC4FYRLpB2HMblNT+XPTAXbhiLVbCQrqQViPOr JkaDdWSb/XfINhBvWjyCqNtSgWRNR76MJA== X-Google-Smtp-Source: APiQypKb7Xvh3LdKVrFWQFOlubWs1sU3sTmBt+eDn/Ka5wTCvhPtQytzrwCNPLy+g4VQatGT+2d3GA== X-Received: by 2002:a37:8346:: with SMTP id f67mr17695094qkd.283.1587436786072; Mon, 20 Apr 2020 19:39:46 -0700 (PDT) Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id i42sm924986qtc.83.2020.04.20.19.39.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2020 19:39:44 -0700 (PDT) Message-ID: <93A509E9-E6BC-425C-A584-F49F094E75B0@benramsey.com> Content-Type: multipart/signed; boundary="Apple-Mail=_7D635C08-172B-4F83-AC97-60EE42260C37"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Mon, 20 Apr 2020 21:39:43 -0500 In-Reply-To: <2677cdc6-309c-4e4e-9cd9-12ff2a90c1e1@www.fastmail.com> Cc: php internals To: Larry Garfield References: <2677cdc6-309c-4e4e-9cd9-12ff2a90c1e1@www.fastmail.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] [RFC] Function pipe operator From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_7D635C08-172B-4F83-AC97-60EE42260C37 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 20, 2020, at 20:38, Larry Garfield = wrote: >=20 > Hello fine people of Internals! >=20 > 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: >=20 > https://wiki.php.net/rfc/pipe-operator-v2 >=20 > A patch is available here: >=20 > https://github.com/php/php-src/pull/5425 >=20 > Although I have one or two bits of it that I could use feedback on. = (Let me know over on GitHub.) >=20 > 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. >=20 > My enormous thanks to Sammy K Powers and Levi Morrison for their = copious hand-holding in my first foray into php-src. >=20 > *dons flame retardant suit* I liked the use of expressions in the v1 proposal, but I agree with you = that the use of callables simplifies the approach, and (IMO) provides a = better developer experience, since I found the `$$` placeholder = confusing. I=E2=80=99m a +1 for this. I can=E2=80=99t wait to use it. Cheers, Ben --Apple-Mail=_7D635C08-172B-4F83-AC97-60EE42260C37 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXp5c7wAKCRCwLZeYnIwH GyBaAP0UDmFkULnjc3tvaAb5tRcpPmUQ6zdzFJVLZrbcawDNGQD9EFzE0WTCrnyb FqorX3xSS99sdaERlOkdQJbaxLZ48CU= =bVew -----END PGP SIGNATURE----- --Apple-Mail=_7D635C08-172B-4F83-AC97-60EE42260C37--