Re: [RFC] switch expression

From: Date: Fri, 27 Mar 2020 12:53:45 +0000
Subject: Re: [RFC] switch expression
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-109371@lists.php.net to get a copy of this message
This doesn't look like it can do fallbacks which are traditional feature of switch statements, can it? What I mean is this ``` case foo: case bar: return 1; case baz: return 2; ``` If we can't do that, I would suggest to go with different name, rather than reusing "switch".

« previous php.internals (#109371) next »