Re: Re: [RFC] Reserving More Types in PHP 7
| From: | Sara Golemon | Date: | Fri, 20 Feb 2015 04:04:13 +0000 |
| Subject: | Re: Re: [RFC] Reserving More Types in PHP 7 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83262@lists.php.net to get a copy of this message | ||
On Thu, Feb 19, 2015 at 5:36 PM, Levi Morrison <levim@php.net> wrote:
> I would like to discuss a small RFC for reserving more types in PHP 7:
> https://wiki.php.net/rfc/reserve_more_types_in_php_7
>
> Essentially it proposes to reserve:
>
> int, integer
> bool, boolean
> true, false
> float, double
> string
> null
>
+1 -- I was planning to put this up today and got waylaid.
On Thu, Feb 19, 2015 at 8:01 PM, François Laupretre <francois@php.net> wrote:
>
> Add 'resource', 'object', 'scalar', 'mixed',
> 'numeric'
>
> Remove 'double' (avoid this alias if we decide to encourage 'float'
> everywhere)
>
> Hope 'null', 'true', and 'false' can technically be used as type
> hints.
> If not, bad news, especially for null. Love 'int|false' as return type !
> If I were to change one thing, it'd be to add some metatypes (possibly as a separate
> vote):
>
I also agree with everything François said. Reserve these additional
types (possibly in a separate vote, up to you).
-Sara