Re: [RFC] [Discussion] Retry functionality

From: Date: Mon, 19 Jun 2017 21:19:55 +0000
Subject: Re: [RFC] [Discussion] Retry functionality
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-99564@lists.php.net to get a copy of this message
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 = 5; try { // … } catch (…) { retry $retries--; } Kind regards, Aidan

« previous php.internals (#99564) next »