Re: [RFC][PRE-VOTE] Reserving More Types in PHP 7
| From: | Bob Weinand | Date: | Sat, 14 Mar 2015 11:38:15 +0000 |
| Subject: | Re: [RFC][PRE-VOTE] Reserving More Types in PHP 7 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84770@lists.php.net to get a copy of this message | ||
> Am 14.03.2015 um 10:21 schrieb Pavel Kouřil <pajousek@gmail.com>:
>
> On Saturday, March 14, 2015, Levi Morrison <levim@php.net> wrote:
>> RFC Link: https://wiki.php.net/rfc/reserve_more_types_in_php_7<+8ôÇ×vü|
>> ”^¯ø
>>
>> The proposal has changed from the original. It no longer reserves the
>> aliases out of the interest of reserving the smallest useful,
>> uncontroversial subset. Some people want to remove aliases for these
>> types so in the interest of being as uncontroversial as possible I am
>> no longer proposing to remove them.
>>
>> This will go into voting on March 15th unless something comes up
>> between now and then to persuade me otherwise.
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> Hello,
>
> why do you consider a "true" and "false" as a type? It's not a type.
> it's a
> value?
>
> Regards
> Pavel Kouril
These aren't types. But useful for e.g. union types (int|false). [By the way they're
internally handled as different types… but that's an implementation detail…]
Also, he doesn't call them anywhere types, it's just the title.
Bob