Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102471 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37234 invoked from network); 26 Jun 2018 20:49:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2018 20:49:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.195 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.195 mail-wr0-f195.google.com Received: from [209.85.128.195] ([209.85.128.195:46858] helo=mail-wr0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/A5-01794-0E6A23B5 for ; Tue, 26 Jun 2018 16:49:37 -0400 Received: by mail-wr0-f195.google.com with SMTP id t6-v6so313498wrq.13 for ; Tue, 26 Jun 2018 13:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Qf3MfuDOauMIffJMNEhm1ts39q+kTaeoT6bJqicO3OA=; b=eHAOXtAHyp+MvNx1DtXoMW13eQuWc3JJkL4+mA1QmENmSPMhi34lFMSerx5L5XfmG6 j3eQe0y8xSGNPXNYJATybnVJYN9JQwLud3gJQgb+TrDJh6oayp9kmKPB13rCutUmnydo ll0GTSWgtI4pKEDtyAPpqOGNFtxPaX2lZtjegmh/KzxADkFAbbQwFgO7nhAyGlKc0axG NjwBmDSE1mZMuNI2rTnYpFUbiYl/5+5c1pKdtcJg6uk+A71mnvaD9QH0t3otGoyK2hDo nrTCk+mp7+gFIKBLH7TwXsqFjFEEEiYPMUZHzPs+6ch0OtSwC2CNmCFNxIicmeP3dTMz eQbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Qf3MfuDOauMIffJMNEhm1ts39q+kTaeoT6bJqicO3OA=; b=TVOIxJoCNHYAnmF5sjr5xcU+yl7Cra45xOrfZpAsxQsdYnwLWXj707hk3ky274tUxY Ju3mmc/UJ2ouqhP+h6wCSQzPJf+hSOnxZ4FZh8JT+ZUqhCO/B0Dj0gYHYAOq+DYUW9Vc AvQmu5x8xOxK4f7IPQ8v+rszumnCqRGR19yFhUVOYaZ35aE4vFp6FjRzFZtiR14ktVIS fZdsVGkqdeuqVhjtdQyNW5sh7voKN/pOkkQiQaYteUds27MDXkfeaFRp0X62vkOT8GGn jdw/4VrD6fMlTNdkxMy0dPgbuL+zpZae+5MdpKlwF9t9jnMU+/9FYDl2jDD03QfNd/0w uckA== X-Gm-Message-State: APt69E1xYlkuLB5LOOU/2H8pBlGOVCXgZ0+5MUT96wN0N1y+fIbRCXtd e7AMlrfRIuY50YekmfFyGJYmHz98 X-Google-Smtp-Source: AAOMgpfDKCBdvwqBAjPB+MwwsnzYoecjUnqZE3P0TWuJ/GZTFYMuXw037eVvsXB/0JHy1TfZkjQRrQ== X-Received: by 2002:adf:ec4d:: with SMTP id w13-v6mr2664828wrn.222.1530046173632; Tue, 26 Jun 2018 13:49:33 -0700 (PDT) Received: from ?IPv6:2a00:23c4:4b86:4b00:8c52:b75c:6830:2844? ([2a00:23c4:4b86:4b00:8c52:b75c:6830:2844]) by smtp.googlemail.com with ESMTPSA id s191-v6sm4932980wmd.27.2018.06.26.13.49.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jun 2018 13:49:32 -0700 (PDT) To: internals@lists.php.net References: <17c367f8-3aeb-277f-36c3-f019e6d0d27a@blueyonder.co.uk> Message-ID: <94ff9afc-b3b0-0ae2-55bd-ce6c3936967d@gmail.com> Date: Tue, 26 Jun 2018 21:49:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <17c367f8-3aeb-277f-36c3-f019e6d0d27a@blueyonder.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Subject: Re: [PHP-DEV] [RFC] Deprecate and remove continue targeting switch From: rowan.collins@gmail.com (Rowan Collins) On 26/06/2018 20:28, niel wrote: > On 24/06/18 17:16, Nikita Popov wrote: >> Hi internals, >> >> Another small deprecation for your consideration... >> >> https://wiki.php.net/rfc/continue_on_switch_deprecation >> >> Regards, >> Nikita >> > IMO the proposed illustrations will lead to as much, if not more, WTF > from other language users as current behaviour. Why? Because the > programmer still has to account for the 'switch' in how continue > works. This will just cause a BC problem for older code without adding > anything for people new to PHP. > > My suggestion, is to make the break (no pun intended) be clean. > Deprecate use of continue from usage to escape switch completely in > next PHP, then remove that functionality in PHP 8. > Do you mean that this code would be valid in both PHP 7 and PHP 8, but mean different things? while($outer) {     while($inner) {         switch($foo) {             case 1:                 continue 2;         }     } } If so, I think that would be even more confusing. Regards, -- Rowan Collins [IMSoP]