Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59328 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94203 invoked from network); 2 Apr 2012 20:12:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2012 20:12:41 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:36632] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/08-43049-9380A7F4 for ; Mon, 02 Apr 2012 16:12:41 -0400 Received: from [192.168.2.230] (ppp-88-217-76-249.dynamic.mnet-online.de [88.217.76.249]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id D074860409; Mon, 2 Apr 2012 22:12:37 +0200 (CEST) To: Alexey Shein Cc: Rasmus Schultz , internals@lists.php.net In-Reply-To: References: <1333395629.10466.11.camel@guybrush> Content-Type: text/plain; charset="UTF-8" Date: Mon, 02 Apr 2012 22:12:36 +0200 Message-ID: <1333397556.10466.12.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] resume after exception From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Tue, 2012-04-03 at 00:49 +0500, Alexey Shein wrote: > 3 апреля 2012 г. 0:40 пользователь Johannes Schlüter > написал: > > 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