Re: [RFC] Pipe Assignment Operator
| From: | Tim Düsterhus | Date: | Mon, 13 Jul 2026 14:11:16 +0000 |
| Subject: | Re: [RFC] Pipe Assignment Operator | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-131884@lists.php.net to get a copy of this message | ||
Hi
On 2026-07-10 06:45, Caleb White wrote:
I'd like to open discussion on my (first!) RFC for the pipe assignment operator (|>=): https://wiki.php.net/rfc/pipe_assignment_operator It adds a compound assignment form of the pipe operator, so that $x |>= callable is shorthand for $x = $x |> callable, with support for chaining. Implementation with tests is at: https://github.com/php/php-src/pull/22633Quick note regarding formalities: The voting widget was missing the “Abstain” option, which I just added for you. I haven't yet looked at the RFC contents. Best regards Tim Düsterhus