Re: [RFC] Type hints (parameter and return value)
| From: | Derick Rethans | Date: | Thu, 17 Apr 2008 17:32:26 +0000 |
| Subject: | Re: [RFC] Type hints (parameter and return value) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37097@lists.php.net to get a copy of this message | ||
On Thu, 17 Apr 2008, Felipe Pena wrote:
> Now with both parameter and return value type hints.
>
> For parameter type hints, i have completed the actual implementation
> with the leftover php types:
> - string (binary string and unicode)
> - integer (accepting numeric string too)
> - double (accepting numeric string too)
> - boolean ('0', '1', true, false)
I think that the typehints should be strict, if you don't want
strictness, don't use type hints.
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org