Re: AW: [PHP-DEV] PHP7 and types
| From: | Ryan Pallas | Date: | Mon, 13 Jul 2015 15:32:54 +0000 |
| Subject: | Re: AW: [PHP-DEV] PHP7 and types | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87151@lists.php.net to get a copy of this message | ||
On Mon, Jul 13, 2015 at 1:40 AM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
>
> Like I said, adding type checks to every assignment is a rather large
> change, and I doubt it can be done without some nasty performance costs.
>
> Honestly, I would rather have a speedy runtime and put the effort into a
> static analysis mode built into PHP. The stated goal of so many who push
> the strict types everywhere argument is that it helps find bugs. So
> let's have an analyze mode that finds these bugs without bogging down
> the runtime with thousands of type checks.
>
> -Rasmus
>
>
Given the size of the change is possibly much larger than I expected. And
given that I'm new to the core and its probably not within my wheelhouse to
create such a large change, I'm probably not the right person to do the
work. As such I think this thread will just die, unless someone wants to
volunteer for the work - in which case I would be glad to offer an help I
can and write up and manage the RFC.
Thanks for all your thoughtful responses!