Re: Re: [VOTE] PDO Float Type
| From: | Matteo Beccati | Date: | Thu, 18 May 2017 13:34:59 +0000 |
| Subject: | Re: Re: [VOTE] PDO Float Type | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99113@lists.php.net to get a copy of this message | ||
Hi Adam,
On 18/05/2017 14:59, Adam Baratz wrote:
>>
>> If you search the archives, you might find that I wasn't happy to have
>> PARAM_FLOAT without some kind of PARAM_NUMERIC. You're basically saying
>> that my point was irrelevant and out of scope. Aww, thanks ;)
>
> I'm sorry my update sounded like I was ignoring your feedback. Another
> change was meant to address your concerns about people misusing
> PARAM_FLOAT. Most drivers won't force casts on these values, so if you pass
> a string with this type it will work the same as if you used PARAM_STR.
> Isn't that the foot-gun you've highlighted?
If you add a parameter that is not going to be used 99% of the time,
then it's even worse.
> Maybe we should approach this another way: is there anything that could be
> changed with the RFC to change your mind about it? If not, this
> conversation is a waste of time for both of us.
As it is now, I'm afraid not.
Cheers
--
Matteo Beccati
Development & Consulting - http://www.beccati.com/