Re: [RFC][PRE-VOTE] Reserving More Types in PHP 7
| From: | Philip Sturgeon | Date: | Sat, 14 Mar 2015 20:31:50 +0000 |
| Subject: | Re: [RFC][PRE-VOTE] Reserving More Types in PHP 7 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84783@lists.php.net to get a copy of this message | ||
On Sat, Mar 14, 2015 at 7:38 AM, Bob Weinand <bobwei9@hotmail.com> wrote:
>> 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
>>>
>>> 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
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
This is a solid plan. Vote this and everyone should +1 it, so if this
scalar squabble results in a a 0-0-0 score we can at least add scalars
later.
Regardless of scalar types it's just a good idea, and would give
lolphp one less thing to pissmoan about.
http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s