Re: [RFC] Short-match
| From: | Marco Pivetta | Date: | Mon, 14 Dec 2020 18:13:50 +0000 |
| Subject: | Re: [RFC] Short-match | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-112498@lists.php.net to get a copy of this message | ||
Hey Larry,
On Mon, Dec 14, 2020 at 6:34 PM Larry Garfield <larry@garfieldtech.com>
wrote:
> I present to Internals this tiny RFC to follow up on the match()
> expression RFC from earlier in the year. There was solidly positive
> support for this shortcut previously but it was removed for simplicity at
> the time, with the intent to bring it back later. It's now later.
>
> https://wiki.php.net/rfc/short-match
>
Overall back to the
switch (true) case, which IMO is not a good idea in
first place :|
Nothing wrong with using a set of conditional that are put in a sequence
through if (), for these rare cases.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/