Re: Optional catch binding
| From: | Stanislav Malyshev | Date: | Thu, 21 Feb 2019 19:35:24 +0000 |
| Subject: | Re: Optional catch binding | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104495@lists.php.net to get a copy of this message | ||
Hi!
> Allthough global exception catching might not be a good practice per se, I
> don't see a real reason to forbid it. However, these are 2 independent
> features that can be voted for I guess.
It's not forbidden now. But there's no reason to encourage it and
develop a dedicated syntax for it. Current syntax works just fine. Yes,
it produces a warning - and it should, since what is being done is what
usually should not be done - ignoring exceptions.
--
Stas Malyshev
smalyshev@gmail.com