Re: [PHP-DEV] [RFC] switch expression

This is only part of a thread. view whole thread
  109301
March 25, 2020 16:28 ilija.tovilo@me.com (Ilija Tovilo)
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