Re: [RFC] Deprecate and remove continue targeting switch
| From: | Yasuo Ohgaki | Date: | Wed, 04 Jul 2018 22:14:04 +0000 |
| Subject: | Re: [RFC] Deprecate and remove continue targeting switch | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102592@lists.php.net to get a copy of this message | ||
On Mon, Jun 25, 2018 at 1:17 AM Nikita Popov <nikita.ppv@gmail.com> wrote:
> Hi internals,
>
> Another small deprecation for your consideration...
>
> https://wiki.php.net/rfc/continue_on_switch_deprecation
>
> Regards,
> Nikita
>
This great improvement. IMO.
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.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net