[RFC] Strict type hints (parameter and return value)
| From: | Felipe Pena | Date: | Thu, 17 Apr 2008 14:42:46 +0000 |
| Subject: | [RFC] Strict type hints (parameter and return value) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-37068@lists.php.net to get a copy of this message | ||
Hi.
Well, thinking better about the behavior of type hinting, i decided to
change the proposal for strict type. I.e. don't accept numeric string
as an intenger, etc.
If anyone wants use type hinting, i believe that it should be strict.
Otherwise, it makes more sense to not use it.
Examples, patches and tests: http://wiki.php.net/rfc/typehint
--
Regards,
Felipe Pena.