RE: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7
| From: | François Laupretre | Date: | Fri, 20 Feb 2015 04:01:05 +0000 |
| Subject: | RE: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83261@lists.php.net to get a copy of this message | ||
Hi Levi,
Just my opinion :
Add 'resource', 'object', 'scalar', 'mixed',
'numeric'
Remove 'double' (avoid this alias if we decide to encourage 'float' everywhere)
Not sure we'll use Boolean and integer but reserve also.
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 !
Regards
François
> -----Message d'origine-----
> De : morrison.levi@gmail.com [mailto:morrison.levi@gmail.com] De la part
> de Levi Morrison
> Envoyé : vendredi 20 février 2015 02:36
> À : internals
> Objet : [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7
>
> Sorry: Apparently hit some hotkey for send.
>
> On Thu, Feb 19, 2015 at 6:35 PM, Levi Morrison <levim@php.net> wrote:
> > Dear Internals,
> >
> > 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
>
> It does not make them keywords; it only prevents them from being used
> in class, interface, trait and namespace names.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php