Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109744 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 83986 invoked from network); 21 Apr 2020 10:33:16 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Apr 2020 10:33:16 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A01F11801FD for ; Tue, 21 Apr 2020 02:04:39 -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,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-f54.google.com (mail-io1-f54.google.com [209.85.166.54]) (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 ; Tue, 21 Apr 2020 02:04:39 -0700 (PDT) Received: by mail-io1-f54.google.com with SMTP id u11so14271381iow.4 for ; Tue, 21 Apr 2020 02:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pEwFmULx5jY0DPxKoTEz2Uk52EINmfKU7eQv/dr3sVA=; b=WDhG1IQjabmiGO/xq2sDDRmjI3EPsON+etB85DpAiLhGV5lQ4JU6TwXwhpDfgbYnPK 386PfbLNLBUbzeDGmZwkTT2vgVgZTADe18RE7hdGwvJlheN3HNt9UTc3TgIymHSVLMWp UMIcfyZl5dp46f2yCKsx3zHKAz4tjMm3HrcPvmY9C8dUiSe1DUNHp2YyqJ+xDgmJ4m01 qyHtJSrdOeUX6Ue/qxK/WCHNEg2hZ0MhiKfEYzs0/ozZOquhv/ybIxbPr+223PNQfcVk KlxfG8cWeP6POTDY+tHsi1BYfdhx21Ay0C/TMlKoGMVy0DKsFb2eX4koIAiUUsFbPy7A bH7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pEwFmULx5jY0DPxKoTEz2Uk52EINmfKU7eQv/dr3sVA=; b=rXzaTjWH+c6haMzDJ0JKVexwZTKwi/ftS8OIzPshX+m111a5iWOLB1QruSaK9lIsVn 3YPgJz2hc2t8nDVTP9iG5wl4+rLiGumRdKZ5pOVUboIO6fAao3d2cjgownSi8+4va62S 5nsaUx7Q2PEp6T1b9o07hJ0wc8jFAmqdHY0ByxHOGRIVUkuJu4uSZ936ebG1QiwZyEsz yVpOPf4+NKm1/8QxQrs7Vgtn4xBfXx89bnwsvd8CMenPkkVx9GgueYgqCj+uXQw6A1l7 n8TSSY0guGiMeydRc8AszGGuMeC2yRYtCQN4B5yu8GzX1iW8us8Kga/n1XZv1G2YSEL5 1EUw== X-Gm-Message-State: AGi0Puay2arqfwmh0yqRfjgaT9f90rBR9Y/MbQi8Gr+ME2SoNDPEahQ8 Hdp6Wk5PHjeawP31P+/Knx9h0/aBKgbuoe4QBg2JZXAj X-Google-Smtp-Source: APiQypKrabeLOYu7zWvaCuNu3KXl7htKq3FHz9KZoAZSv9KVrAPKZRzUdql8tWS2IyNur2HoXv8G2UTHepvS47lJygQ= X-Received: by 2002:a02:9f8b:: with SMTP id a11mr943223jam.122.1587459878637; Tue, 21 Apr 2020 02:04:38 -0700 (PDT) MIME-Version: 1.0 References: <2677cdc6-309c-4e4e-9cd9-12ff2a90c1e1@www.fastmail.com> In-Reply-To: <2677cdc6-309c-4e4e-9cd9-12ff2a90c1e1@www.fastmail.com> Date: Tue, 21 Apr 2020 11:04:26 +0200 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="00000000000029536305a3c94ea2" Subject: Re: [PHP-DEV] [RFC] Function pipe operator From: ocramius@gmail.com (Marco Pivetta) --00000000000029536305a3c94ea2 Content-Type: text/plain; charset="UTF-8" Hey Larry, This looks good! One question arises: how do exception traces look like, if they happen mid-pipe? Is the pipe effectively attaching stack frames to the entire thing, or is it flattening the trace? Greets, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Tue, Apr 21, 2020 at 3:38 AM Larry Garfield wrote: > Hello fine people of Internals! > > 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: > > https://wiki.php.net/rfc/pipe-operator-v2 > > A patch is available here: > > https://github.com/php/php-src/pull/5425 > > Although I have one or two bits of it that I could use feedback on. (Let > me know over on GitHub.) > > 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. > > My enormous thanks to Sammy K Powers and Levi Morrison for their copious > hand-holding in my first foray into php-src. > > *dons flame retardant suit* > > -- > Larry Garfield > larry@garfieldtech.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --00000000000029536305a3c94ea2--