Re: [RFC] Guard statement

From: Date: Sat, 16 May 2020 12:57:03 +0000
Subject: Re: [RFC] Guard statement
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-110179@lists.php.net to get a copy of this message
Correction: > guard (null !== $x = foo()) { return; } > // No benefit over > if (null !== $x = foo()) { return; } My example was wrong, should've been: > if (null === $x = foo()) { return; }

« previous php.internals (#110179) next »