Re: [RFC] Scalar Type Hints v0.2
| From: | Andrey Andreev | Date: | Mon, 02 Feb 2015 16:57:06 +0000 |
| Subject: | Re: [RFC] Scalar Type Hints v0.2 | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81612@lists.php.net to get a copy of this message | ||
Hi,
On Mon, Feb 2, 2015 at 6:52 PM, Andrea Faulds <ajf@ajf.me> wrote:
> Hi Andrey,
>
>> On 2 Feb 2015, at 16:48, Andrey Andreev <narf@devilix.net> wrote:
>>
>> As already said, we're just going around in circles at this point, but
>> a migration issue?
>>
>> Whatever code using the scalar type hints should be *new* code in
>> userland.
>
> Why not existing userland code? If only new code adds type hints, the ability to detect errors
> in code is severely curtailed. That would be really unfortunate.
>
>> You're basing your whole argument on the assumption that all
>> internal functions would break with strict=1 ... nobody needs that and
>> it doesn't have to be done.
>
> I wasn’t talking about internal functions… I’m talking about userland code in the
> hypothetical case that we added strict-only hints.
>
> I don’t see where you’ve gotten that impression from.
>
Well ... existing userland code doesn't have scalar type hints, it
couldn't possibly do. How can you have migration issues with it?
Cheers,
Andrey.