Re: Re: Typed properties patch
| From: | Stanislav Malyshev | Date: | Mon, 18 Apr 2016 18:37:54 +0000 |
| Subject: | Re: Re: Typed properties patch | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92421@lists.php.net to get a copy of this message | ||
Hi!
> right.
> I don't see any reasons for types, if they are not guaranteed anyway.
Well, we already have parameter types, and they are not guaranteed
either - you can reassign variables.
> This depends on use case.
> Just imagine matrix multiplication (or something similar).
> Few additional instructions would decrease the speed significantly.
I think this is a very narrow use case. If somebody does large data
processing (like large matrix multiplication) in pure PHP, they are
doing it wrong anyway. So trying to optimize for their use case I think
is not a high priority. I would say for any typical PHP app cost of one
unexpected branch is negligible.
--
Stas Malyshev
smalyshev@gmail.com