Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76471 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10038 invoked from network); 13 Aug 2014 10:24:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2014 10:24:28 -0000 Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.178 as permitted sender) X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.216.178 mail-qc0-f178.google.com Received: from [209.85.216.178] ([209.85.216.178:55402] helo=mail-qc0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/C1-33745-BDC3BE35 for ; Wed, 13 Aug 2014 06:24:28 -0400 Received: by mail-qc0-f178.google.com with SMTP id x3so3966257qcv.9 for ; Wed, 13 Aug 2014 03:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=QJlqma4gB9OmuTWDEl14gcBnTHXW2RWH56GlHinq4WM=; b=aKVy61QUKW4ruN7o7PWooXASU0Nk9kNLTnAfCLa/WkuE3t+tskAxH8680S6yy0wjHj BB4aYiArFI5BjEntnQrcSZS6zRNwdEZD/UOk1wRjDtK/uhEs2cP72QK82qiH0L3NZ5bC S9o+8Tq4pibYrGngBDEljrNIVXFGsNhgx/KoxJBOKjivd7ATQ7DPmTwABjW4BGZHGiFa 85hw6rrC3b1fBnMsl2fswMlBsVHeElgL29/UFETBPndX2lHA+/Lt/1G0Fv1+L83LZ/l5 +63bMXYGPqE/Tu57HYE7ogJE3tS8nx6l8f55P46Rv0hO45zNZbed937rF7xhyS9CGDrm tUBw== X-Received: by 10.224.127.74 with SMTP id f10mr5202984qas.100.1407925510049; Wed, 13 Aug 2014 03:25:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.188.66 with HTTP; Wed, 13 Aug 2014 03:24:29 -0700 (PDT) In-Reply-To: References: <942D2AF6-BDC2-4214-BD58-4B5945C28CE3@ajf.me> Date: Wed, 13 Aug 2014 11:24:29 +0100 Message-ID: To: Andrea Faulds Cc: Pierre Joye , Ferenc Kovacs , James , Sara Golemon , PHP internals Content-Type: multipart/alternative; boundary=001a11c2cc18e59f750500803382 Subject: Re: [PHP-DEV] [RFC] Disallow multiple default blocks in a single switch statement From: petercowburn@gmail.com (Peter Cowburn) --001a11c2cc18e59f750500803382 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 13 August 2014 10:56, Andrea Faulds wrote: > > On 13 Aug 2014, at 10:52, Pierre Joye wrote: > > > On Wed, Aug 13, 2014 at 11:42 AM, Andrea Faulds 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 =E2=80=9Cfeature=E2=80=9D is comp= letely and utterly > useless, and I=E2=80=99ll 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=E2=80=99d rather we fix these in 5.7, which I=E2=80=99m a proponent of = and would come > out sooner. This way we don=E2=80=99t have nonsenses like this specified = for three > years. > Since the spec is targeting 5.6 [citation needed], this behaviour will need to be in there regardless of in what version it gets fixed. > -- > Andrea Faulds > http://ajf.me/ > > > My thoughts on the topic? I think we're in danger of letting "process" get in our way here. It's a bug fix which IMHO should even be thrown into 5.6 (this is a bug fix!). Going through the RFC process, being forced to wait for 5.7 or 7, extended discussions on the list... it all just seems unnecessary. But, that's just the opinion of a docs guy. :-) > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c2cc18e59f750500803382--