Re: [PHP-DEV] [RFC] Pipe Assignment Operator

[email protected] (Tim Düsterhus) Sun, 19 Jul 2026 14:40:46 +0200
Newsgroups php.internals
Message-ID <[email protected]>
Hi

On 7/14/26 13:37, Caleb White wrote:
> On Tuesday, July 14th, 2026 at 03:22, Tim Düsterhus <[email protected]> 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