Re: [RFC] [Discussion] Allow int type argument to BCMath function
| From: | Saki Takamachi | Date: | Thu, 11 Jul 2024 01:49:27 +0000 |
| Subject: | Re: [RFC] [Discussion] Allow int type argument to BCMath function | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124378@lists.php.net to get a copy of this message | ||
Hi Tim,
> That's fair enough.
>
> I do still consider accepting 'int' to be less unsafe than accepting
> 'float', because the behavior of ints can be reasoned about more easily and because they
> to not experience implicit rounding.
>
> I do not particularly care whether or not 'int' is accepted or not for that reason,
> but I care about 'float' not being accepted. So perhaps it's best to accept neither
> as you suggested.
Yes, I had completely forgotten about casting priorities.
So, at least I don't plan on including it in 8.4, and may even retract the change altogether.
Regards,
Saki