Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90782 invoked from network); 2 Apr 2012 19:50:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2012 19:50:15 -0000 Authentication-Results: pb1.pair.com header.from=confik@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=confik@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: confik@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:63016] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/57-43049-6F20A7F4 for ; Mon, 02 Apr 2012 15:50:14 -0400 Received: by yhfq11 with SMTP id q11so1635849yhf.29 for ; Mon, 02 Apr 2012 12:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=mLzUdGy0FjpoShTy/sdQezjiqH8yWlKjZ4t9pUKtFO4=; b=uocUBGvkz1mb4ZHJj387XAWKfUAlf8/xciGN0aARrqvJRgqrty4F6p6h9Sz8469Spo j1Y1DzplY+KrD4aP9o9mE62uTJg8ln6WTp+bhNGIcZGNZ9AAeb1bVGg6yaWdP/Gkn4ZW HMsRWjVYG8rN/ITbHZeGN5X5dohG0uZMegDRwAvOI9MB1+5aMhINrz3fnDp5bbHLnmdZ aNXdJN57qHNVBXM8NueTpcHg3Cr3htt2FBgqKjJfuseXJLnjsZdZadaBlKnF/alaEVyz yq7IH/HVg3ZzlyLW7q6X+YxrviSj3Yc/u+d51dntsUs2SUWHIc745zL7FQmMCz9h87MV g4ug== Received: by 10.236.176.197 with SMTP id b45mr8283372yhm.72.1333396211440; Mon, 02 Apr 2012 12:50:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.213.40 with HTTP; Mon, 2 Apr 2012 12:49:51 -0700 (PDT) In-Reply-To: <1333395629.10466.11.camel@guybrush> References: <1333395629.10466.11.camel@guybrush> Date: Tue, 3 Apr 2012 00:49:51 +0500 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: Rasmus Schultz , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] resume after exception From: confik@gmail.com (Alexey Shein) 3 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2012=C2=A0=D0=B3. 0:40 =D0=BF=D0=BE= =D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Johannes Schl= =C3=BCter =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > 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 whi= le >> this has no particular relevance to PHP as such, it got me thinking abou= t >> 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 :) --=20 Regards, Shein Alexey