Re: What do we need strict scalar type hints for?
| From: | Andrey Andreev | Date: | Thu, 05 Feb 2015 09:51:12 +0000 |
| Subject: | Re: What do we need strict scalar type hints for? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81888@lists.php.net to get a copy of this message | ||
Hi,
On Thu, Feb 5, 2015 at 9:22 AM, Stanislav Malyshev <smalyshev@gmail.com> wrote:
> Hi!
>
>> True, but obviously, us who want strict typehints want to be able to do this:
>
> Obviously, but it doesn't mean whole language should be changed to serve
> one use case, especially the one that goes contrary to what happened in
> PHP for decades.
I never suggested that. The only reason I replied to you is because
you're saying it changes the whole language, and I explicitly said I'm
not in favor of only strict types, just as I'm against having only
weak types.
I just want that one use case to be satisfied, without changing how
the rest of the language works.
Cheers,
Andrey.