Re: resume after exception
| From: | Johannes Schlüter | Date: | Mon, 02 Apr 2012 20:12:36 +0000 |
| Subject: | Re: resume after exception | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59328@lists.php.net to get a copy of this message | ||
On Tue, 2012-04-03 at 00:49 +0500, Alexey Shein wrote:
> 3 апреля 2012 г. 0:40 пользователь Johannes Schlüter
> <johannes@schlueters.de> написал:
> > On Mon, 2012-04-02 at 08:44 -0400, Rasmus Schultz wrote:
> >> I was just reading about the new async/await keywords in C# 5.0, and while
> >> this has no particular relevance to PHP as such, it got me thinking about
> >> this idea...
> >>
> >> What if you could resume execution after an exception was thrown?
> >
> > So some random piece of code might cause other code to execute, which
> > was expected not to run (and therefore threw an exception).
> >
> > I fear this brings hardly understandable code flows.
>
> Yeah, don't like it either. It seems like goto is coming back. Oh,
> wait, goto is already come back in 5.3 :)
Actually our goto is limited to the scope, this "feature" is not, even
worse :-)
johannes