Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120825 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71809 invoked from network); 17 Jul 2023 14:57:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Jul 2023 14:57:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CBD67180511 for ; Mon, 17 Jul 2023 07:57:50 -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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 17 Jul 2023 07:57:50 -0700 (PDT) Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-786f25bcb40so270450139f.3 for ; Mon, 17 Jul 2023 07:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689605869; x=1692197869; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=muNxQuY5X00HrJcNZqMMJ6SUuJ5kxiCN9GYPnEf5R3o=; b=MvdhmjW47WFKgoMQCvGs+ZPRI0GHcFcAFjGJfwR0G+QDk1o1KX8w39gnJgSJQnJSau Wayo21H6VOT0RcLc9AundUrPflz1dlcDfZ8VAo/H4QRDvTexbRFzRCOjOBnKGRJXUgA3 XAWfUIvm8Z0uvHueqxgax7bqc3OPdoRCsn3TnoD/A5JHX2JLrqpzCe95iZZuMGHZZCql 5pDyv7Kl8zlOVqH34uVkfJgMqV/QoCaSjEtDrQXCgbUU/fMofEzT3mMtlwxG1EQCjU90 TfnDnjhRCMuLs+MutjyWdC9x04rHq4/lcXIbdkAeWczirnzHD0QfTDUDxS2B0OwcFKI0 s3QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689605869; x=1692197869; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=muNxQuY5X00HrJcNZqMMJ6SUuJ5kxiCN9GYPnEf5R3o=; b=Iy2WUJ6iVOf12+IToBXP4PSnYEhjiExYOWpCrQrWk2WXG0Mga2+i7vYO2ky6zRWdsO hhLecNgoeRh/Uuox/+wOJCDk+iaUUz5youQuytIDsjvMFccBZ7inRPRC6cyAuuwXURFZ Yzp0ioVMIR69cAh1UnK6plDRUPXfUHgWpSNYE/lU9kc7EGA19EL4/Vb9Vb6G9mTqMq+f LnpbrP3ykW3U312GhsPAWbH7sn2qf649COniT3fs0Fv4Fv15JHQYp4Wsx9qmwXAqVPa5 ATOcgXYUuJq4KHnjnBNyq3Jj2p7b5ey6CiwDgT5CiUcxQin3NxyPaxJMoBo1T2ubLSaX 7qFg== X-Gm-Message-State: ABy/qLbICbCACjoEiP3yfn155GzoDdDbbSZxxHna1vQB/uRrLw9704lD /Vs4PXOEZUGud0pS00BszflYNN8CXlGuKgo5UzEMi9Tl X-Google-Smtp-Source: APBJJlEuxDHV8NGOGXFqWYV0LSGoPt0Rn32recD+3wrf1uVw8rPEZEJz0Y25ze1ZcUyDI5j0Qv9+WkPIKrAp0MKXwzM= X-Received: by 2002:a05:6e02:1c07:b0:342:1012:1196 with SMTP id l7-20020a056e021c0700b0034210121196mr83230ilh.15.1689605869420; Mon, 17 Jul 2023 07:57:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:b1cd:0:b0:2e2:2af1:79d7 with HTTP; Mon, 17 Jul 2023 07:57:48 -0700 (PDT) In-Reply-To: References: Date: Mon, 17 Jul 2023 16:57:48 +0200 Message-ID: To: Karoly Negyesi Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] pipes, scalar objects and on? From: olleharstedt@gmail.com (=?UTF-8?Q?Olle_H=C3=A4rstedt?=) 2023-07-17 14:25 GMT+02:00, Karoly Negyesi : > Hi, > > I tried to read on why the pipe RFC failed but by and large I also failed. > > The discussion on https://github.com/php/php-src/pull/7214 is very short. > > https://externals.io/message/114770 is not so short but it seems not to > cover the latest version which uses first class functions? > > Could someone please give me a summary why it failed? I really would like > to see it succeed :) I am writing code if not daily but certainly weekly > that certainly looks like a pipeline. The pipe RFC was kinda forced in before a deadline, no? My own two cents: * It's trivial to implement a pipe() function or a Pipe class * A Pipe class is better than both a function and built-in operator, since it can be configured with custom behaviour, e.g. stop or throw on empty payload, or repeat on a collection, or even with parallelism or concurrency * If I had voting rights, I'd vote in favor in a pipe operator :) Olle