Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9069 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49816 invoked by uid 1010); 12 Apr 2004 15:48:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49651 invoked from network); 12 Apr 2004 15:48:56 -0000 Received: from unknown (HELO longsword.omniti.com) (66.80.117.3) by pb1.pair.com with SMTP; 12 Apr 2004 15:48:56 -0000 Received: from [66.80.117.2] (helo=[10.80.116.129]) by longsword.omniti.com with asmtp (TLSv1:RC4-SHA:128) (Exim 4.14) id 1BD3g9-0006Yn-07; Mon, 12 Apr 2004 11:48:57 -0400 In-Reply-To: <1101B839-8C98-11D8-BB64-000A95E073A0@php.net> References: <1081740243.14476.11.camel@coogle.localdomain> <1081740243.14476.11.camel@coogle.localdomain> <5.1.0.14.2.20040412134325.039c7758@127.0.0.1> <1101B839-8C98-11D8-BB64-000A95E073A0@php.net> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <26E7D27E-8C99-11D8-8792-000393B2B3C0@omniti.com> Content-Transfer-Encoding: 7bit Cc: John Coggeshall , Derick Rethans , Andi Gutmans , PHP Internals Date: Mon, 12 Apr 2004 11:50:41 -0400 To: Sterling Hughes X-Mailer: Apple Mail (2.613) Subject: Re: [PHP-DEV] Exceptions and Errors From: george@omniti.com (George Schlossnagle) On Apr 12, 2004, at 11:42 AM, Sterling Hughes wrote: > > I like OO (*), and I think warnings (non-fatal errors) as exceptions > are a stupid idea. Does that count? ;-) > > Exceptions in languages like Java are used explicitly to catch fatal > errors, not to catch basic errors. If 'languages like Java' means languages designed for OO, then this is not true. Python throws exceptions for almost everything (KeyError, for example). Even Java throws exceptions (java.sql.Exception) for things like failed database connections which are warnings in PHP. George