Re: Scalar Type Hints v0.4
| From: | Michael Wallner | Date: | Wed, 18 Feb 2015 11:19:34 +0000 |
| Subject: | Re: Scalar Type Hints v0.4 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83045@lists.php.net to get a copy of this message | ||
On 17/02/15 23:03, Sara Golemon wrote:
> 1) Introduce scalar types for primitives: bool, int, float, string,
> resource, object (we already have array)
> 1a) Introduce meta-types as pre-defined unions (we can add custom
> unions in a later rfc). A possible list may be as follows (again, we
> can argue what's in this list separately):
> * mixed: any type
> * scalar: (null|bool|int|float|string)
Hold on, usually, type checking functions don't identify NULL as scalar.
--
Regards,
Mike