Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76469 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5664 invoked from network); 13 Aug 2014 09:55:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2014 09:55:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:54979] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/11-33745-C263BE35 for ; Wed, 13 Aug 2014 05:55:56 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 40846B0008A; Wed, 13 Aug 2014 05:56:38 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id N3uZnNsgdA3R; Wed, 13 Aug 2014 05:56:37 -0400 (EDT) Received: from [192.168.0.2] (05439dda.skybroadband.com [5.67.157.218]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 7D78BB00085; Wed, 13 Aug 2014 05:56:35 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: Date: Wed, 13 Aug 2014 10:56:32 +0100 Cc: Ferenc Kovacs , James , Sara Golemon , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <942D2AF6-BDC2-4214-BD58-4B5945C28CE3@ajf.me> To: Pierre Joye X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] [RFC] Disallow multiple default blocks in a single switch statement From: ajf@ajf.me (Andrea Faulds) On 13 Aug 2014, at 10:52, Pierre Joye wrote: > On Wed, Aug 13, 2014 at 11:42 AM, Andrea Faulds wrote: >=20 >>> I could see >>> where people would use it - there are reasons to, even if they are = poor in >>> choice to do so. >>=20 >> How, exactly, could there ever be a use for having multiple default: = sections and ignoring all but one? This =93feature=94 is completely and = utterly useless, and I=92ll eat my hat if anyone intentionally relied on = it. >=20 > 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. >=20 > 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=92d rather we fix these in 5.7, which I=92m a proponent of and would = come out sooner. This way we don=92t have nonsenses like this specified = for three years. -- Andrea Faulds http://ajf.me/