Re: [RFC] [Discussion] Retry functionality

From: Date: Tue, 20 Jun 2017 05:47:35 +0000
Subject: Re: [RFC] [Discussion] Retry functionality
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-99569@lists.php.net to get a copy of this message
Hi! > 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 To me, it looks like this belongs in userspace, not as a language keyword. I don't really see what it does that you can't do with existing loop constructs. The RFC proclaims that using loops "less than ideal" but provides zero arguments for it. Introducing new keyword into a language should have a high barrier - since it raises the complexity, makes the language harder to learn and increases the number of corner cases and code to maintain. I fail to see this syntax sugar providing enough value to clear the barrier. > Voting will open on Monday, July 3rd, 2017 @ 9 am CDT. Also, having only 2 weeks to discuss about introducing a new language keyword sounds like extremely short period. Especially at the summer when many people go to vacations. There's no rush, really. 2 weeks is a *minimal* time, not the time to strive for in any case. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#99569) next »