Re: [RFC] [Discussion] Allow int type argument to BCMath function
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
Thread (12 messages)