Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9061 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71370 invoked by uid 1010); 12 Apr 2004 14:39:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71331 invoked from network); 12 Apr 2004 14:39:19 -0000 Received: from unknown (HELO miranda.org) (209.58.150.153) by pb1.pair.com with SMTP; 12 Apr 2004 14:39:19 -0000 Received: (qmail 6343 invoked by uid 546); 12 Apr 2004 14:39:18 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 12 Apr 2004 14:39:18 -0000 Date: Mon, 12 Apr 2004 10:39:18 -0400 (EDT) X-X-Sender: adam@miranda.org To: Andi Gutmans cc: Derick Rethans , John Coggeshall , PHP Internals In-Reply-To: <5.1.0.14.2.20040412134325.039c7758@127.0.0.1> Message-ID: References: <1081740243.14476.11.camel@coogle.localdomain> <1081740243.14476.11.camel@coogle.localdomain> <5.1.0.14.2.20040412134325.039c7758@127.0.0.1> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Exceptions and Errors From: adam@trachtenberg.com (Adam Maccabee Trachtenberg) 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!