Re: Exceptions and Errors
| From: | Adam Maccabee Trachtenberg | Date: | Mon, 12 Apr 2004 14:39:18 +0000 |
| Subject: | Re: Exceptions and Errors | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9061@lists.php.net to get a copy of this message | ||
On Mon, 12 Apr 2004, Andi Gutmans wrote:
> I think that functional context should continue to work as usual, but
> there's a big advantage to be able to catch problems with try/catch and not
> have to if() each internal function call separately (which you probably
> don't do :)
> I don't see a problem with OOP extensions throwing exceptions.
I agree. I don't think we should modify the functional context at
all.
However, uf bundled extensions don't throw exceptions (or even worse,
some do and some don't) then why did we both implementing exceptions?
How can anyone rationally design an application when half of their
problems issue errors and the other half throw exceptions? That's a
recipe for disaster.
-adam
--
adam@trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!