Re: [RFC] Deprecate and remove continue targeting switch
| From: | Stanislav Malyshev | Date: | Tue, 26 Jun 2018 19:04:29 +0000 |
| Subject: | Re: [RFC] Deprecate and remove continue targeting switch | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102463@lists.php.net to get a copy of this message | ||
Hi!
> This leaves us in a position where "continue" means different things in
> PHP and in other syntactically similar languages, causing confusing for
> programmers familiar with them. This is solved by simply prohibiting the
> case that is ambiguous. This is not a loss for PHP developers (who use
I see your point, in this case I'd add a notice for continue in switch
that would say something along the lines "continue in switch is the same
as break, did you mean "continue 2;"?"
--
Stas Malyshev
smalyshev@gmail.com