Re: [RFC] Disallow multiple default blocks in a single switch statement

From: Date: Wed, 13 Aug 2014 09:56:32 +0000
Subject: Re: [RFC] Disallow multiple default blocks in a single switch statement
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-76469@lists.php.net to get a copy of this message
On 13 Aug 2014, at 10:52, Pierre Joye <pierre.php@gmail.com> wrote: > On Wed, Aug 13, 2014 at 11:42 AM, Andrea Faulds <ajf@ajf.me> wrote: > >>> I could see >>> where people would use it - there are reasons to, even if they are poor in >>> choice to do so. >> >> How, exactly, could there ever be a use for having multiple default: sections and ignoring >> all but one? This “feature” is completely and utterly useless, and I’ll eat my hat if anyone >> intentionally relied on it. > > The question is more about how and when do we fix issues found while > working on the specs? That one is pretty easy and the impact for users > will be rather small, if at all. > > However, I tend to think that we should simply target php7 for any of > these fixes. No need of endless arguing and keeps everyone happy. I’d rather we fix these in 5.7, which I’m a proponent of and would come out sooner. This way we don’t have nonsenses like this specified for three years. -- Andrea Faulds http://ajf.me/

« previous php.internals (#76469) next »