Re: [RFC] Pipe Assignment Operator

From: Date: Sun, 19 Jul 2026 12:40:46 +0000
Subject: Re: [RFC] Pipe Assignment Operator
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-132028@lists.php.net to get a copy of this message
Hi On 7/14/26 13:37, Caleb White wrote:
On Tuesday, July 14th, 2026 at 03:22, Tim Düsterhus <tim@bastelstu.be> wrote:
Thank you. One note regarding “the lowest precedence level, right-associative”. This is not quite correct. While the assignment operators have fairly low precedence, they are not the lowest. As an example, the infamous $foo = bar() or die() pattern relies on or having a lower precedence than assignment. This should be corrected. The $result = ($x |>= double(...)) |> triple(...); example also doesn't showcase precedence, because of the explicit parentheses.
Ah, yes. I meant among the symbolic operators but you are correct and I've updated to make this more clear. I removed the explicit parentheses from the example.
Thank you, the precedence section LGTM now. And overall I don't have any further comments regarding the contents of the RFC. Best regards Tim Düsterhus

« previous php.internals (#132028) next »