Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76468 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4017 invoked from network); 13 Aug 2014 09:52:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2014 09:52:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.43 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.43 mail-qg0-f43.google.com Received: from [209.85.192.43] ([209.85.192.43:51530] helo=mail-qg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/B0-33745-0453BE35 for ; Wed, 13 Aug 2014 05:52:01 -0400 Received: by mail-qg0-f43.google.com with SMTP id a108so10469685qge.2 for ; Wed, 13 Aug 2014 02:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=qLE5mxnu6o0z7M6IutfcsL3XVsMh5j+7m6ZqswzBHDc=; b=cU8ldIsRh6nNupLmNPe9R5goQAezB+VkpDcN3CMvI/+Lf3gUGNv0AE2KLUVUZAxiSn +Uljsu1HqOg517+Hb7Z0X9dCx5e79zDcP7Iy+opM4F7gsQOc3ReJMvVi8+i5gCwtEy3W K18Tx0NprGQMA3AxO4a/PqkqbaSADwxae1dQUC78OGXuEc1zv4Q3yfdA89yCgnMJp2zo CV7GDI7X50NlqfxigXvpOqnVeKCvZA4RMHsHX8cLGEISuO0Y8y02/s2Xf3kuOF8FVCdC 6//h/7JHgYY/uPOtnQij1YkV9jBhlnoIMDVmNLVMGkwDqvdntcSk81b1bbrAoVf1+pqc Ej1g== MIME-Version: 1.0 X-Received: by 10.140.85.135 with SMTP id n7mr4747791qgd.22.1407923563160; Wed, 13 Aug 2014 02:52:43 -0700 (PDT) Received: by 10.140.24.54 with HTTP; Wed, 13 Aug 2014 02:52:43 -0700 (PDT) In-Reply-To: <942D2AF6-BDC2-4214-BD58-4B5945C28CE3@ajf.me> References: <942D2AF6-BDC2-4214-BD58-4B5945C28CE3@ajf.me> Date: Wed, 13 Aug 2014 11:52:43 +0200 Message-ID: To: Andrea Faulds Cc: Ferenc Kovacs , James , Sara Golemon , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Disallow multiple default blocks in a single switch statement From: pierre.php@gmail.com (Pierre Joye) 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: sect= ions and ignoring all but one? This =E2=80=9Cfeature=E2=80=9D is completely= and utterly useless, and I=E2=80=99ll eat my hat if anyone intentionally r= elied 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, --=20 Pierre @pierrejoye | http://www.libgd.org