Re: [RFC] Scalar Type Hints v0.2
| From: | Leigh | Date: | Wed, 14 Jan 2015 09:17:12 +0000 |
| Subject: | Re: [RFC] Scalar Type Hints v0.2 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80447@lists.php.net to get a copy of this message | ||
On 14 January 2015 at 00:16, Andrea Faulds <ajf@ajf.me> wrote:
> Good evening,
>
> I’ve made some quite significant changes to my Scalar Type Hints RFC, and bumped its version
> to 0.2.
>
> Here: https://wiki.php.net/rfc/scalar_type_hints
>
> This is a new thread because I’ve made a significant revision to the RFC, so it’d be
> sensible to separate discussion of the updated RFC from the v0.1 RFC.
>
> Please tell me your thoughts.
>
I really don't like this behaviour being changed at the call site. If
I design a function that I _know_ should only take a string, then I
want it to be an error if the user supplies anything else, so that
they know they messed up.
Also, there's this, that you might be able to re-purpose.
https://github.com/php/php-src/blob/d5dd29/Zend/zend_compile.c#L7199