Re: RFC: Type hinting revisited for PHP 5.3
| From: | Kalle Sommer Nielsen | Date: | Thu, 02 Jul 2009 10:42:44 +0000 |
| Subject: | Re: RFC: Type hinting revisited for PHP 5.3 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44632@lists.php.net to get a copy of this message | ||
Hi
2009/7/2 Ionut G. Stan <ionut.g.stan@gmail.com>:
> Is it possible that instead of an E_RECOVERABLE_ERROR, an Exception to
> be thrown? I don't know whether InvalidArgumentException satisfies the
> semantics,
> but it's a step in that direction.
I don't think we should start changing the standard way of the engine
to error out, having a custom error that checks for
E_RECOVERABLE_ERROR can be made to throw an InvalidArgumentException
within few lines of code/parsing.
--
regrads,
Kalle Sommer Nielsen
kalle@php.net