Re: Questions about using exceptions
| From: | Greg Beaver | Date: | Tue, 05 Jul 2005 16:24:13 +0000 |
| Subject: | Re: Questions about using exceptions | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38452@lists.php.net to get a copy of this message | ||
Sergio Carvalho wrote:
Ideally, phpdoc should infer it from the code, but that would be too good to be true ;-)Not to mention really, really slow and impossible to do correctly without full php parsing of every single possible branch. Imagine this code: return $mappedfunction(); Finding the possible exceptions returned is logically impossible unless we use an algorithm that is as efficient as something akin to cracking 1024-bit RSA with a brute-force approach :). Greg