Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9066 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19185 invoked by uid 1010); 12 Apr 2004 15:14:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19088 invoked from network); 12 Apr 2004 15:14:06 -0000 Received: from unknown (HELO miranda.org) (209.58.150.153) by pb1.pair.com with SMTP; 12 Apr 2004 15:14:06 -0000 Received: (qmail 15307 invoked by uid 546); 12 Apr 2004 15:14:05 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 12 Apr 2004 15:14:05 -0000 Date: Mon, 12 Apr 2004 11:14:05 -0400 (EDT) X-X-Sender: adam@miranda.org To: Derick Rethans cc: Andi Gutmans , John Coggeshall , PHP Internals In-Reply-To: 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, Derick Rethans wrote: > On Mon, 12 Apr 2004, Adam Maccabee Trachtenberg wrote: > > > 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. > > Exactly the reason why nothing should throw exceptions at all. If nothing should throw exceptions then they shouldn't be in the language. However, having decided to place exceptions to the language, it's only rational to implement them in a sane way. I understand you're against them. Personally, I may not use them. However, I really don't think it makes any sense to set exceptions up for failure with a half-baked implementation. (I'm not saying the ZE2 part of exeptions is half-baked. That works. It's the deployment of exceptions that's half-baked.) -adam -- adam@trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today!