Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29204 invoked from network); 4 Jul 2018 22:20:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2018 22:20:52 -0000 Authentication-Results: pb1.pair.com header.from=kalle@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.53 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.218.53 mail-oi0-f53.google.com Received: from [209.85.218.53] ([209.85.218.53:39104] helo=mail-oi0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/2A-55607-2484D3B5 for ; Wed, 04 Jul 2018 18:20:51 -0400 Received: by mail-oi0-f53.google.com with SMTP id d189-v6so13154546oib.6 for ; Wed, 04 Jul 2018 15:20:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ru5nwXZsvW9bavC/3gRfX3ZgXwZIRXUEz+o8DqKQrOI=; b=DOlIwL4qu/oWCXOMKDt2Bc6Vc/77czzuY/iv1OccL2N2J7aAw08mhWoT53gB0nKHAN pPCBEWG6ZqJf7ddyAGhaG8fjmrKIJXRk7IF53SGxVh4VOC8lMpATXt+Z3/2ldg6sMFOt lN+NvVMGnL4b//RJCuYinjztoPJj0EQNhm/u+jSCIC+5B2KBF93XOo6KGsjyOazQwCcl UmKdEsyzLhoCkS67qjVI4Bc2YeR3EIMf1FZRWC1hPkAFKerGfiN0DNOpF/Lxykfu6lEK fJCP1N0nNPZ6OP2jKXqZ3snr1fp7/oA/uR1NGZwTNRmazgtOh8TYE78RenzflbjYHP4E UfMQ== X-Gm-Message-State: APt69E2japTAvLAGO2BXRzrub904zDkrYfQb02EIlcWvP3oFaZdapVLJ +OoVXEN2B/G8ePv3J3ODJ/VUzlVFDwjYi6ywRE0= X-Google-Smtp-Source: AAOMgpdCN6EvMf+Elpax6fYPI2M4ai285kxaDbO9McM4nzfhRn9ac6ACcq66bTiuwmB5NbsnXo4xDhydTj+SEbI8wbs= X-Received: by 2002:aca:5583:: with SMTP id j125-v6mr4313806oib.2.1530742847345; Wed, 04 Jul 2018 15:20:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 5 Jul 2018 00:20:36 +0200 Message-ID: To: Yasuo Ohgaki Cc: Nikita Popov , Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Deprecate and remove continue targeting switch From: kalle@php.net (Kalle Sommer Nielsen) Den tor. 5. jul. 2018 kl. 00.15 skrev Yasuo Ohgaki : > Since the issue is incompatibility between current "continue" and "break", > how about provide a tool replace "continue" to "break" where it is > applicable. > (Raise error for invalid "continue" usage also. This would be a bug most > likely.) > > Then there wouldn't be compatibility issue anymore. I like the idea of a tool for such, but I think its better to implement it in some of the static analyzer projects like PHPStan and the like to catch these. -- regards, Kalle Sommer Nielsen kalle@php.net