Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126340 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id E01AC1A00BC for ; Fri, 7 Feb 2025 19:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738957540; bh=gyOESX3/rK6C5b4arCut/aY7aHCnLCUafpAIceK9Vv0=; h=Date:From:To:In-Reply-To:References:Subject:From; b=IO4jtv9tXFtUifVZYEitAmoRQEb5U5eS9WeOEgwqtu3Qs5a1bL4AgglzKbeAvOv/r j+7KwxKIsbBvvPlUBEF4f3bdbN1y4KDpliWYuAXCFxz5WDjD8LY1AKB6kBhoAEwqFO m7pNr8nmJwI2p4WlulvVGMHLEwZOSVR9BArDCtGsopQMQRmZkh7qtjSZQODtf9c6Z5 Cn3Qpq/J2PE0/ifePrh0d2VDH0NMBcEZnznyCqy1y4+Bc2wO0NRtSdfAs8c8LneTr4 QZ9V3AWeRnQJsQuMQ1gKdYxWqkjYQbw97xruh41yCMvPUluABtpbD5Pge7YfLUE/+y J0lHBjO0wDklw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 12521180082 for ; Fri, 7 Feb 2025 19:45:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.159]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 7 Feb 2025 19:45:38 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 16C4C25401D3 for ; Fri, 7 Feb 2025 14:48:23 -0500 (EST) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-01.internal (MEProxy); Fri, 07 Feb 2025 14:48:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm3; t=1738957702; x=1739044102; bh=85RtOCN/wkbGDDBwyE7IH NRXtqwylpzGksItYBclEj8=; b=ID3AS8z72F66GhyP0mmBtpZFeZoeARutuNeAp wsegOvLXbXYVQS+a5iDJ/16gm0o1EHn0YqdKF36V2m3e6KE2zpZzd32x73t+9EeX h6W3wNWEB9dfRTbKdfsjS4Oq99SdfVkuTusWdhe54nr2ezk0loKb4PIGirgqB3DL sJxccdWQ/Dhv2sHZBJdqQ6amM1/+uasm8ERGfI9PWuwDYO7nbmtyEt8wIypviMs3 F+E517z81AEstjW2iew/9waEY2IDndG5E5xecUOSZpjhMF0IMMeNbg4vH53go944 u3lH5HMuEfEl488VhK7G5OVdnwLPec2jsYBCl02sOqBjsvIBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1738957702; x=1739044102; bh=8 5RtOCN/wkbGDDBwyE7IHNRXtqwylpzGksItYBclEj8=; b=0h+tKGPc+wXzmP2FY NqwK96k8U3PDCG4hd5XfYJc7DoKV81dN81wZjsiQaC5rnVCHnmqZu96PbIj/NFSw SAIhxmKVjcuo4Bp2pAI8UneQk9l1sQhBSxaUglHrIzJktPvbNl6ST6Oc0GvqPK2G UZvCaZ42w7Rngi73m11G6Z4sbFq/dBAYA1bv1+EdZCzax0lLXquw3VtZv37qrLGb zPlgD19ask+WwtCn84U+dBFEONGQQsm9EhoDjnRseykq+1frD1wUjavAKxTAkBLw 97lcGzvadaUd8oaA0BAtAIxVymWQgj3FWcuq0q8gEP+NfJE3nu6N9T80eHq9XK8t yPN4A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeftdduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvkfgjfhfutgfgsehtqhertdertdej necuhfhrohhmpedfnfgrrhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfh hivghlughtvggthhdrtghomheqnecuggftrfgrthhtvghrnhepgfevffehvdehleffgeeu lefhudeufefhhfekhefgfefhgfevvdduudffhfejffevnecuffhomhgrihhnpehpvggrkh gurdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmpdhnsggprhgtphhtthhope dupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhs thhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 6F3B329C006F; Fri, 7 Feb 2025 14:48:22 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 07 Feb 2025 13:48:02 -0600 To: "php internals" Message-ID: <4d494e02-62de-4d4e-9e83-b4483758b3cb@app.fastmail.com> In-Reply-To: <65d875b7-8ea7-43ff-9dbc-a1e335073115@gmx.de> References: <65d875b7-8ea7-43ff-9dbc-a1e335073115@gmx.de> Subject: Re: [PHP-DEV] [RFC] Pipe Operator (again) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Fri, Feb 7, 2025, at 10:51 AM, Christoph M. Becker wrote: >> Of particular note, since the last RFC I have concluded that a compos= e operator is a necessary complement to a pipe operator. However, it's = also going to be notably more work, and the two operators don't actually= interact at all at the code level, so since people keep saying "Small R= FCs!", here's a small RFC. :-) > > Fair enough. And with the pipe operator, one might live without a > compose operator, e.g. > > $f1 =3D fn($x) =3D> 2 * $x; > $f2 =3D fn($x) =3D> $x + 3; > // $f3 =3D $f2 =E2=88=98 $f1 > $f3 =3D fn($x) =3D> $x |> $f1 |> $f2; > > Christoph The v2 RFC took that position, that compose was easy enough to emulate v= ia pipe. Indeed, pipe and compose can both be implemented in terms of e= ach other. However, since the previous RFC I've concluded[1] that both = are sufficiently useful that we really out to include both of them. PIp= es are just way easier to implement in practice. :-) --Larry Garfield [1] https://peakd.com/hive-168588/@crell/aoc2021-review