Hi Marco, Is there any chance you can elaborate on why you feel it's a bad idea?
Both you and Sara at different points have talked about thinking was bad practice, but I've not read anything compelling about why it should be considered as such. Kind regards, Doug Nelson On Mon, 14 Dec 2020 at 18:14, Marco Pivetta <ocram...@gmail.com> wrote: > Hey Larry, > > On Mon, Dec 14, 2020 at 6:34 PM Larry Garfield <la...@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/ > -- Doug Nelson Senior Software Engineer