Re: RFC: Type hinting revisited for PHP 5.3
| From: | Derick Rethans | Date: | Wed, 01 Jul 2009 20:53:02 +0000 |
| Subject: | Re: RFC: Type hinting revisited for PHP 5.3 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44607@lists.php.net to get a copy of this message | ||
On Wed, 1 Jul 2009, Ilia Alshanetsky wrote:
>
> I've taken a few hours this morning to port my 5.2 type hinting patch to 5.3.
> In recognition of a need for a more 'flexible' numeric type I've introduced
> (numeric) type hint that would allow bool/int/float data types as well as a
> string containing a numeric entity as identified by is_numeric_string(). For
> completion i've also added (scalar) data type that will allow any scalar data
> element.
>
> The patch is available here:
> http://ia.gd/patch/type_hint_53.txt
+1
regards,
Derick
--
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org
twitter: @derickr