Re: [RFC] Pipe to return
| From: | Vadim Dvorovenko | Date: | Sun, 08 Feb 2026 14:46:33 +0000 |
| Subject: | Re: [RFC] Pipe to return | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130056@lists.php.net to get a copy of this message | ||
04.02.2026 15:16, Oleksii Bulba пишет:
One question about semantics: what would be the expected behavior if there is another pipe operand after |return|? For example:
|$foo |> return |> bar(...);|
Would this be a compile-time error, a no-op after |return|, or is |return|intended to be a hard terminal in the pipe chain by definition?
Best regards,
Oleksii
This would lead to parse-time time error, return |> is not valid grammar sequence.