Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44922 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62211 invoked from network); 10 Jul 2009 15:24:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2009 15:24:19 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:43786] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/95-37812-12D575A4 for ; Fri, 10 Jul 2009 11:24:18 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id A0E764144061; Fri, 10 Jul 2009 15:25:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lOQC7cVrGm6U; Fri, 10 Jul 2009 17:25:39 +0200 (CEST) Received: from [10.122.87.224] (gprs13.swisscom-mobile.ch [193.247.250.13]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id E449C414405B; Fri, 10 Jul 2009 17:25:37 +0200 (CEST) References: <7.0.1.0.2.20090708224156.0ac5a438@zend.com> <312025EF-84D0-4411-A0A7-4F0379C3105F@pooteeweet.org> <13.B7.23850.208375A4@pb1.pair.com> <20090710132324.GM19636@mint.phcomp.co.uk> <98.71.37812.2D6575A4@pb1.pair.com> <20090710151651.GR19636@mint.phcomp.co.uk> Message-ID: To: Alain Williams In-Reply-To: <20090710151651.GR19636@mint.phcomp.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Mailer: iPhone Mail (7A341) Mime-Version: 1.0 (iPhone Mail 7A341) Date: Fri, 10 Jul 2009 17:23:39 +0200 Cc: Alban , "internals@lists.php.net" Subject: Re: [PHP-DEV] Type hinting - Request for Discussion From: mls@pooteeweet.org (Lukas Kahwe Smith) On 10.07.2009, at 17:16, Alain Williams wrote: > On Fri, Jul 10, 2009 at 10:57:22AM -0400, Alban wrote: >> Le Fri, 10 Jul 2009 14:23:24 +0100, Alain Williams a =C3=A9crit >>>> >>> >>> >> >> >> And Exception is better than an Error because this give one chance to >> programmer for resolving the problem before program be halted. > > Not everyone understands try/catch. Perhaps a user supplied =20 > function_argument_error() > could be called if not in a try/catch block. well we have an recoverable error in this case which is what you are =20 asking for. an exception could be more useful since you can handle it =20= locally and are not forced to handle this inside a global error =20 handler. then again we really wanted to keep internal exceptio. =20 throwing to a minimum. regardgs lukas=