Re: [RFC][Accepted] Scalar Type Declarations V0.5
| From: | Yasuo Ohgaki | Date: | Thu, 19 Mar 2015 09:51:48 +0000 |
| Subject: | Re: [RFC][Accepted] Scalar Type Declarations V0.5 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85211@lists.php.net to get a copy of this message | ||
Hi all,
On Thu, Mar 19, 2015 at 6:37 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
> On Wed, Mar 18, 2015 at 6:43 PM, Zeev Suraski <zeev@zend.com> wrote:
>
>> > FWIW, as someone who did play with the patch (both patches, of course),
>> > I'm not sure why people are claiming you don't understand the RFC. Your
>> > comments in the code are 100% accurate, which means you understood
>> > exactly how it works.
>>
>> Josh Di Fabio just pointed out to me that the code in question wasn't
>> actually written by you but by Dennis Birkholz, so my statement was
>> incorrect.
>> Still, from what you said it appears to me you still understood the
>> behavior
>> but disagreed with it. I know that at least on my end, that was
>> definitely
>> the case.
>
>
> Yes and I fully agree.
>
> Anyway, unlike your proposal, I have to advocate users not to use type hint
> for database INT8, JSON numeric, etc. It will be tough job...
>
Anyone who are willing to use type hint for any data that has integer/float
form,
you still have chance to vote to 'yes' for
https://wiki.php.net/rfc/coercive_sth
Weak mode can be coercive.
Coercive mode works better with my type affinity proposal also.
https://wiki.php.net/rfc/introduce-type-affinity
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net