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
 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to