Re: [RFC] switch expression

From: Date: Wed, 25 Mar 2020 16:28:40 +0000
Subject: Re: [RFC] switch expression
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-109301@lists.php.net to get a copy of this message
Hi Rowan > The problem with that is that it requires a temporary variable to be > switched on. If I want to switch on, say, a method call, I can write this > for equality: I agree. The iffy part would be recognizing if the case expression should be equated to the switch input or evaluated on its own. That is still something we could address in a later RFC for both the statement and expression. Regards

« previous php.internals (#109301) next »