Re: [RFC] Scalar Type Hints
| From: | Andrea Faulds | Date: | Fri, 02 Jan 2015 13:03:52 +0000 |
| Subject: | Re: [RFC] Scalar Type Hints | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80091@lists.php.net to get a copy of this message | ||
Hi Alain,
> On 2 Jan 2015, at 11:45, Alain Williams <addw@phcomp.co.uk> wrote:
>
> There is a 3rd camp: (c)
> These are the language implementors, in particular 3rd parties eg HipHop. These
> do care if a variable is int 42 or string "42" because there are optimisations
> to be made if they know that a value is really an int and not a string cleanly
> convertable to an int.
Er, optimisations are not at all prevented by having implicit conversions. They still allow you to
reason about types within a function, because types are converted.
Thanks.
--
Andrea Faulds
http://ajf.me/