Re: Strict switch statements
| From: | Sebastian Bergmann | Date: | Fri, 15 Jun 2018 06:36:08 +0000 |
| Subject: | Re: Strict switch statements | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102271@lists.php.net to get a copy of this message | ||
Am 14.06.2018 um 10:35 schrieb Nikita Popov:
> It might make sense to introduce an entirely new "match" statement
> that conforms a bit more with how switch-like strictures are
> implemented nowadays. That is, something like
>
> match ($expr) {
> "foo" => {...},
> "bar" | "baz" => {...},
> }
>
> or similar.
Interesting. Can you provide a pointer to a language that has a match
statement like that?