Re: [RFC] Short-match

From: Date: Mon, 14 Dec 2020 20:24:15 +0000
Subject: Re: [RFC] Short-match
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-112500@lists.php.net to get a copy of this message
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 <ocramius@gmail.com> wrote:

> 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/
>


-- 
Doug Nelson
Senior Software Engineer


Thread (29 messages)

« previous php.internals (#112500) next »