Re: [RFC] Function pipe operator
| From: | Marco Pivetta | Date: | Tue, 21 Apr 2020 09:04:26 +0000 |
| Subject: | Re: [RFC] Function pipe operator | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109744@lists.php.net to get a copy of this message | ||
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 <larry@garfieldtech.com>
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
>
>