Hi Morgan

On Mon, Feb 2, 2026 at 12:42 AM Morgan <[email protected]> wrote:
>
>
> So, for example:
>
>
>         $result = query('foo') ?? return false;
>
> rather than
>
>         if(($result = query('foo')) === null) return false;

Just a heads-up. This has been suggested before and leads to
non-trivial issues with regards to mid-expression live-variable
cleanup. I encountered similar issues for block expressions, for which
{ return; } is effectively equivalent to return. I explained the
problem in more detail here:

https://wiki.php.net/rfc/match_blocks#technical_implications_of_control_statements

Ilija

Reply via email to