Re: RE: Announcing RFC 'Anonymous Catches'
| From: | Levi Morrison | Date: | Tue, 25 Jun 2013 19:56:10 +0000 |
| Subject: | Re: RE: Announcing RFC 'Anonymous Catches' | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67824@lists.php.net to get a copy of this message | ||
Regarding all of the discussion about the unused variable:
If your catch blocks are too long or too complicated to be able to tell
that the variable is unused, then I highly suggest you refactor that
section.
---
To me, the only maybe-useful portion of this discussion would be the empty
catch which is more clear that it is a final resort catch than just
catching \Exception. Apparently the opinions on this are quite divided,
though.