Re: Type hinting - Request for Discussion

From: Date: Fri, 10 Jul 2009 15:23:39 +0000
Subject: Re: Type hinting - Request for Discussion
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-44922@lists.php.net to get a copy of this message
On 10.07.2009, at 17:16, Alain Williams <addw@phcomp.co.uk> 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 écrit
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 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 asking for. an exception could be more useful since you can handle it locally and are not forced to handle this inside a global error handler. then again we really wanted to keep internal exceptio. throwing to a minimum. regardgs lukas

« previous php.internals (#44922) next »