Re: [RFC] [Discussion] Retry functionality
| From: | lists@rhsoft.net | Date: | Mon, 19 Jun 2017 14:28:45 +0000 |
| Subject: | Re: [RFC] [Discussion] Retry functionality | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99548@lists.php.net to get a copy of this message | ||
Am 19.06.2017 um 16:24 schrieb Ivan Enderlin:
Thank you for the RFC. I have a question though. I would like to know how is it different from theeven if both works the retry-statement is much clearer, especially when the code becomes larger than these few linesgotolanguage 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.
well, as for other loops you are responsible at your own to count up a $retry_count and stop after N tries