RE: [PHP-DEV] [VOTE] Scalar Type Hints
| From: | François Laupretre | Date: | Thu, 12 Feb 2015 14:37:29 +0000 |
| Subject: | RE: [PHP-DEV] [VOTE] Scalar Type Hints | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82538@lists.php.net to get a copy of this message | ||
Hi,
>
> > 2- Lack of numeric scalar type
> > There're others, but these ones are keys to make them fully usable.
>
> A number (or numeric, or num, or some other name) type hint is something I
> plan to propose in a future, follow-up RFC.
For a set of 'extended' types like 'number', and their matching rules against
zvals, this may help :
https://wiki.php.net/rfc/dbc#dbc_types_vs_zval_types
Cheers
François