Re: RE: Optional scalar type hinting
| From: | Derick Rethans | Date: | Fri, 04 Jan 2008 09:04:45 +0000 |
| Subject: | Re: RE: Optional scalar type hinting | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34398@lists.php.net to get a copy of this message | ||
On Thu, 3 Jan 2008, Sam Barrow wrote:
> On Thu, 2008-01-03 at 22:37 +0100, Markus Fischer wrote:
>
> > Of course, Jochem, you're right. Exceptions would be nice.
> > WrongArgumentException, InvalidWhateverException, ...
>
> That would be very nice. The full blown suite of exception error
> handlers could be a future project, depending on code contributors and
> community support.
>
> As for my patch, I think we can all agree on E_WARNING.
Definitely not. Type hints now throw E_RECOVERABLE_ERROR, and that
should be the same for any other typehinting system that we add.
Derick