Re: [RFC] Deprecate and remove continue targeting switch

From: Date: Sat, 07 Jul 2018 09:20:33 +0000
Subject: Re: [RFC] Deprecate and remove continue targeting switch
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-102633@lists.php.net to get a copy of this message
On Thu, Jul 5, 2018 at 12:51 AM, Christoph M. Becker <cmbecker69@gmx.de> wrote: > On 05.07.2018 at 00:20, Kalle Sommer Nielsen wrote: > > > Den tor. 5. jul. 2018 kl. 00.15 skrev Yasuo Ohgaki <yohgaki@ohgaki.net>: > > > >> 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. > > Please note that the RFC has been superseded by > <https://github.com/php/php-src/pull/3364>. > > -- > Christoph M. Becker > The warning addition in https://github.com/php/php-src/pull/3364 is merged now and I've marked the original RFC as withdrawn. Nikita

« previous php.internals (#102633) next »