Re: Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Type hints revisited [IllegalArgumentException
instead of E_ERROR]
| From: | Sebastian Bergmann | Date: | Fri, 28 Mar 2003 16:28:45 +0000 |
| Subject: | Re: Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] Type hints revisited [IllegalArgumentException instead of E_ERROR] |
||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-436@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
> I say nuke type-hints and let the purists use instanceof.
I know that Type Hints are only syntax sugar for instanceof, but I'd
still rather have them, than not.
Any why is not possible - this may have been discussed before, not
sure - to throw an exception when the types are wrong?
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/