Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99547 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82323 invoked from network); 19 Jun 2017 14:24:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2017 14:24:22 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 217.70.183.196 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 217.70.183.196 relay4-d.mail.gandi.net Received: from [217.70.183.196] ([217.70.183.196:37648] helo=relay4-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/A6-13828-49ED7495 for ; Mon, 19 Jun 2017 10:24:21 -0400 Received: from mfilter35-d.gandi.net (mfilter35-d.gandi.net [217.70.178.166]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 8424E1720A3 for ; Mon, 19 Jun 2017 16:24:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter35-d.gandi.net Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter35-d.gandi.net (mfilter35-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id dTcZMIN4GxAb for ; Mon, 19 Jun 2017 16:24:16 +0200 (CEST) X-Originating-IP: 178.211.245.124 Received: from hwhost.local (178-211-245-124.dhcp.voenergies.net [178.211.245.124]) (Authenticated sender: ivan.enderlin@hoa-project.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id E952017213F for ; Mon, 19 Jun 2017 16:24:15 +0200 (CEST) To: internals@lists.php.net References: Message-ID: Date: Mon, 19 Jun 2017 16:24:15 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1042B1507809BE40E8CA2893" Content-Language: en-US Subject: Re: [PHP-DEV] [RFC] [Discussion] Retry functionality From: ivan.enderlin@hoa-project.net (Ivan Enderlin) --------------1042B1507809BE40E8CA2893 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hello :-), Thank you for the RFC. I have a question though. I would like to know how is it different from the `goto` language construction? If I understand it correctly, both the following examples are identical: try { // … } catch (…) { retry; } and: try { retry: // … } catch (…) { goto retry; } Also, what happens if the `try` block keeps failing over and over again: This is a non-breakable loop. Thank you for your feedbacks :-). Cheers. On 19.06.17 15:55, Sammy Kaye Powers wrote: > Hello internals! > > The RFC that proposes adding retry functionality to the > `try/catch/finally` block is now officially "under discussion". > > https://wiki.php.net/rfc/retry-keyword > > Voting will open on Monday, July 3rd, 2017 @ 9 am CDT. > > Voting will close on Monday, July 17th, 2017 @ 9 am CDT. > > Discuss amongst yourselves. :) > > Thanks, > Sammy Kaye Powers > sammyk.me > --------------1042B1507809BE40E8CA2893--