Re: [RFC] Deprecate and remove continue targeting switch

From: Date: Wed, 27 Jun 2018 15:53:29 +0000
Subject: Re: [RFC] Deprecate and remove continue targeting switch
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-102493@lists.php.net to get a copy of this message
On Wed, Jun 27, 2018 at 11:46 AM niel <spam-free@blueyonder.co.uk> 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 > > > > Could you clarify the PHP 8 changes: > > "PHP 8 generates a compile error." > > Does this mean *any* use of continue in a switch is a compile error, or > only continue without a number > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Something like this could make upgrading PHP against a large legacy code base near impossible. If this was the ONLY thing that a developer in another language would have to grapple with in order to switch the PHP, it might be different. But, I would advise against potentially breaking a lot of code for something that provides no functional advantage, and, at best, might provide a slight syntactical improvement (and, I'm not convinced it even does that). -- -- Chase chasepeeler@gmail.com

« previous php.internals (#102493) next »