Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115192 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29140 invoked from network); 28 Jun 2021 19:53:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Jun 2021 19:53:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BEFF11804B3 for ; Mon, 28 Jun 2021 13:13:42 -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_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 28 Jun 2021 13:13:42 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id EB52B32008FB for ; Mon, 28 Jun 2021 16:13:41 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute1.internal (MEProxy); Mon, 28 Jun 2021 16:13:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=8OxQnDNrssoNablWi/cg7qK8U+lyBvlaRalj7iL1o Gs=; b=D1b6yp2FJrezITnpGwh6i5NQVBaXA95bg/IDWyb6ChK39tq5/Zb7Hg3F6 uSHdqtOOvdGH6AwknkITZzzZz72me7/0e69e19YgPoiUoNciIw1TVnDHYmSMq6YG E4ywfqYIEcQOxh6Xrb3J+zJz0Mk+pDcmRUZM9yYZraMuXpGTf7Ny/WJEB0S0cvrN Xc8amqpuh/dyF06e69hZr9m9G3KyqtRsEgdj+odBPZaXdglMf5iCofi01s8kLjBj 5FWIQ+TAL2+F0Du/yYxXrNcC46WFcOxmgg6zjZ4QWA+1kne+2KmhD4HTNx4D9YsV 9vNbnBtwrKPfLC2rsdcVin0cutJ1w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeehgedgudeghecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfn rghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrd gtohhmqeenucggtffrrghtthgvrhhnpeffffffjeffudfggeevvdeitdetvdfgjefffeff jeelfeejteevheeghffhvdfgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 46624AC0076; Mon, 28 Jun 2021 16:13:41 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-530-gd0c265785f-fm-20210616.002-gd0c26578 Mime-Version: 1.0 Message-ID: <43d612c0-7462-463a-9536-ed5b66d9ae1e@www.fastmail.com> In-Reply-To: References: Date: Mon, 28 Jun 2021 15:12:37 -0500 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Pipe Operator, take 2 From: larry@garfieldtech.com ("Larry Garfield") On Mon, Jun 28, 2021, at 3:04 PM, Rowan Tommins wrote: > On 28/06/2021 20:25, Olle H=C3=A4rstedt wrote: > > Usage (ignoring the pesky undefined constant warnings ><): >=20 >=20 > Unfortunately, you can't ignore those warnings; not least because=20 > they're fatal errors in PHP 8, as they frankly should have been in PHP= 3. >=20 > You can use our current ugly callable syntax (strings and two-element=20= > arrays); you can tackle the complexity of unifying functions with=20 > constants, and methods with properties (as Levi explained in the other= =20 > thread); or you can add a dedicated callable syntax, which the PFA=20 > proposal gets us with bells on. >=20 > Regards, I think that's a pretty good summary. There's nothing that pipes or par= tials do that you couldn't emulate in user-space today (really, since 5.= 3 is you really wanted to). The emulation is just butt-ugly and slower,= which is why most people don't do it except in very specific cases or i= f they have a user-space library available that makes it slightly less b= utt-ugly. The purpose of PFA and pipes (and short functions, and auto-capture clos= ures, and basically everything else I've been talking about all year) is= to make those things prettier and as fast as reasonable, which makes us= ing those techniques more natural. Once you start down that path, thoug= h, there's really no usable solution before you get down as far as... PF= A and Pipes in their current form. --Larry Garfield