Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99564 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23151 invoked from network); 19 Jun 2017 21:19:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2017 21:19:59 -0000 Authentication-Results: pb1.pair.com header.from=aidantwoods@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=aidantwoods@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.176 as permitted sender) X-PHP-List-Original-Sender: aidantwoods@gmail.com X-Host-Fingerprint: 209.85.128.176 mail-wr0-f176.google.com Received: from [209.85.128.176] ([209.85.128.176:36122] helo=mail-wr0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/EC-13828-EFF38495 for ; Mon, 19 Jun 2017 17:19:59 -0400 Received: by mail-wr0-f176.google.com with SMTP id c11so25857175wrc.3 for ; Mon, 19 Jun 2017 14:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+/G7DH77uauyGT1nQQ79rpEPeJEgH15xA1DRfA9dluE=; b=Tn/Nv70XchfoKOy+KTcfj2e+k8/rkY2G7VSYMCKOHe0J1H/DWG6FgSjazeWlPu78cS 0p4MZhJrDd7ufhvh4gH4sP8krsAhfnrU690x3BxNecLktCCIWYVxiVLnVDxIfMOAsQfj ssd3a0eD+i/YYPp1FXFjhxDs/AXYC54iDujxyLPpQq/WZyoJJL8yUUb9107g6170zjY1 WI3by0R8cf5nZnDPYnB5sr0lXhvgVNvamAjycI5VlwsfpFqL+ze6k8Tkizk745v+g9tI 33CtY5MVTZlKnaF36pAOZtRmeMsJ3JQJZm2/x7XfMzWik7sWpQHObrkO/w8/8tx2oiSa Fd7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+/G7DH77uauyGT1nQQ79rpEPeJEgH15xA1DRfA9dluE=; b=lcZwOf0zimbnUG6y5dgxbewLHkw5U5KPbCV29+IIUN6ExnrXtKVg9iCKZWa3CvRN2z HTZTIkMR/55HXbwdi1Vp4Co0v6KnkzcdVwYmyKYII06bBf4bt75RJ9iJ9J4gOSogOtiT /gkS9Bxza1GnEPb/uS6L1R3m2cPKahso8lNtvgs96P0WSXR/BVONkSmabrDr7b4BQWfz a3285phrPyQ4aqDh5S7WOEW2xNUVghYiaDRNxWcOWmgXtLD5X1b6bwJYLvkFN0hFzkz7 OuWxbVcbl3i9kYaEwRZBGu2GdkOt8meWWzL2QrV/jKF40vTyTWclS6iEx6oCg9EeC0Kd 6TNQ== X-Gm-Message-State: AKS2vOyeUayKIZrMKc0qN/hrjb9Hg3uzqaZnTN4BAxi25gcA7W8R+g6r iDVZcwRZ7D/SnTG0TyjFgscxKr51gJXPsOo= X-Received: by 10.223.175.200 with SMTP id y8mr14342177wrd.163.1497907195604; Mon, 19 Jun 2017 14:19:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.161.26 with HTTP; Mon, 19 Jun 2017 14:19:55 -0700 (PDT) In-Reply-To: <59ee3be5-2d26-0fa0-6ac6-8b10bca49be7@tekwire.net> References: <3421fe57-638f-b440-913d-6f8556ed6be4@tekwire.net> <6ea56bd1-ae62-45c6-aaf7-a51eb5caf828@tekwire.net> <59ee3be5-2d26-0fa0-6ac6-8b10bca49be7@tekwire.net> Date: Mon, 19 Jun 2017 22:19:55 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="f403043890044cf7c1055256b2b4" Subject: Re: [PHP-DEV] [RFC] [Discussion] Retry functionality From: aidantwoods@gmail.com (Aidan Woods) --f403043890044cf7c1055256b2b4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all, It might be useful to incorporate the "retry if" condition that'll likely arise in use of this, into the feature itself. Such that after the retry keyword you could optionally specify a truthy value. Then you could write something like $retries =3D 5; try { // =E2=80=A6 } catch (=E2=80=A6) { retry $retries--; } Kind regards, Aidan --f403043890044cf7c1055256b2b4--