[PHP-DEV] [RFC] Pipe Assignment Operator
[email protected] (Caleb White) Fri, 10 Jul 2026 04:45:32 +0000
| Newsgroups | php.internals |
|---|---|
| Message-ID | <jzAXkn0E9kmJVaADHuR6wHxsWwHkOsjZTbN55ewTzaDe0MGJ2WyB6cXQg4-6Ebv71UIXo6fF_EYjCy9p18g33U87Yoid9ieZpAhd-nveJEs=@pm.me> |
Hi internals, 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/22633 Looking forward to your feedback. Thanks! Caleb