Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120842 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69231 invoked from network); 18 Jul 2023 16:50:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jul 2023 16:50:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EEADA1804B0 for ; Tue, 18 Jul 2023 09:50:53 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 18 Jul 2023 09:50:53 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BC629320025E; Tue, 18 Jul 2023 12:50:52 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Tue, 18 Jul 2023 12:50:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc: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:sender:subject :subject:to:to; s=fm3; t=1689699052; x=1689785452; bh=wjPKux+uSc 3BQhe+8dIMBB+CpILqWs66VcvobxxQlaY=; b=TvNmKMWbAlKSTHHIZWm+WC62p7 FFw4uoFmm2KyZKTmhbscehTzZy4PzSEXy17JZsCCs/Y5u6zlMz2l+xSIxlS89U7c IxOPquomCj5YRHwvPsvm1bTQlWXGSl/vBXd742DnGbEVzP8lP1JpGAR+4TVVzzYf e6jfPvV+AJITsnJHocyR5KDtlfC/hNm4U2jOBOLz1r62BQgnR1b5sva8egQ5ud0q cklM0aTG5Uph0vTU0N4eWsVTsZeyYJ4xnw6yqV9sSvKuTYX8F1kF95b/NmJXNc4V ZynCMAowV3XYRCT5wVTW36y4SxcDG2cQxx87wOrNMQDK2wKwbgiZo79ND9cg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1689699052; x=1689785452; bh=wjPKux+uSc3BQhe+8dIMBB+CpILqWs66Vcv obxxQlaY=; b=Ks+J2OlhJbramHXmB0kgQxlpiJHmJhjYRSpvqPWhBtv/OQ+yKvz TUd2PNCr8WsvlsGA/QKwr+URXR/RPbzEDDaEhABfK5hSmue6YfaRzUUWc7lpfzIm rk5s5bLBTwsinoQAF7Xp3j/+ODbjugDOldfaKz/0KyzTWnNbeUMokfBXoSkLZETM GIEZwVTJOCSsSrBgzHGBeCJadoigOeJW2NjPp9cvBTXv06TrSaohVJCbUVsQkVYU qBdhB2/+Crnfkl4umQ9Q1snsSnxMwVS3y7KKbnRttEmuuk/QWAM1Bwk8lWvb+JCB vCfbx25wLMKks62N3qQ90fn8CI8ckllie8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrgeeggddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdfn rghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrd gtohhmqeenucggtffrrghtthgvrhhnpedtleefkeejteeljeevjeffheffjeeffeehkeel udfhueekvdehffdvveffjefhffenucffohhmrghinhepphgvrghkugdrtghomhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehg rghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1915F17000A1; Tue, 18 Jul 2023 12:50:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-531-gfdfa13a06d-fm-20230703.001-gfdfa13a0 Mime-Version: 1.0 Message-ID: In-Reply-To: References: <8055b366-32f1-4d2c-85d0-0cf665e6c8d3@app.fastmail.com> <51a97131-f64e-4939-9339-24e70873fe32@app.fastmail.com> Date: Tue, 18 Jul 2023 16:50:31 +0000 To: =?UTF-8?Q?Olle_H=C3=A4rstedt?= Cc: someniatko , "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] pipes, scalar objects and on? From: larry@garfieldtech.com ("Larry Garfield") On Tue, Jul 18, 2023, at 4:47 PM, Olle H=C3=A4rstedt wrote: > Any comment on a pipe (or piped process) as a first-class value? When > you use |> the functions are immediately applied, which might not be > what you want. You can lazify it by wrapping it in a lambda, but I > think that decreases the value of the pipe concept in itself. One > strength is the ability to split the decision about what to glue > together from the decision on how to execute it. You kinda get some > light-weight metaprogramming ability that way. > > Well i guess such a pipe-concept is pretty far removed from the simple > pipe operator. :) And also already possible with existing OOP > concepts, callable classes, and now the (...) syntax. That's the function concat operator I have been mentioning. Concat can = be implemented in terms of pipe, and pipe can be implemented in terms of= concat, but I'd rather have both natively. For more on my thoughts there, see: https://peakd.com/hive-168588/@crell= /aoc2021-review --Larry Garfield