Re: resume after exception

From: Date: Mon, 02 Apr 2012 19:49:51 +0000
Subject: Re: resume after exception
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-59326@lists.php.net to get a copy of this message
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 :) -- Regards, Shein Alexey

« previous php.internals (#59326) next »