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

From: Date: Wed, 13 Aug 2014 09:52:43 +0000
Subject: Re: [RFC] Disallow multiple default blocks in a single switch statement
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-76468@lists.php.net to get a copy of this message
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. Cheers, -- Pierre @pierrejoye | http://www.libgd.org

« previous php.internals (#76468) next »