Re: [RFC] Deprecate and remove continue targeting switch

From: Date: Wed, 27 Jun 2018 16:42:55 +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-102499@lists.php.net to get a copy of this message
On 27/06/18 17:08, Nikita Popov wrote:
On Wed, Jun 27, 2018 at 5:59 PM, Rowan Collins <rowan.collins@gmail.com <mailto:rowan.collins@gmail.com>> wrote:
     On 27 June 2018 at 16:45, niel <spam-free@blueyonder.co.uk
     <mailto: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
     <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
     Neither:
Continue can still be used inside switch statements, as long as it does
     not target the switch.
     The lines marked "Deprecated" in the examples are the ones which will be
     compile errors.
Thank you Rowan. I have added a code example to https://wiki.php.net/rfc/continue_on_switch_deprecation#unaffected_php_functionality to further clarify what is deprecated and what continues to be allowed. Nikita Thanks, this makes it clearer.

« previous php.internals (#102499) next »