Re: [PHP-DEV] [RFC] [vote] Support object type in BCMath

2024-05-14 Thread Saki Takamachi
Hi all, Regarding some of the points, I have decided to address them as th follow-up RFC. Further discussion will take place in a separate thread. Regards, Saki

Re: [PHP-DEV] [RFC] [vote] Support object type in BCMath

2024-05-09 Thread Derick Rethans
On Tue, 7 May 2024, Gina P. Banyard wrote: > On Tuesday, 7 May 2024 at 15:46, Saki Takamachi wrote: > > > On Tue, 7 May 2024, Gina P. Banyard wrote: > > > > > - Are the existing BCMath function going to be adapted to handle > > > the new Number object or not? > > > > No, that is not

Re: [PHP-DEV] [RFC] [vote] Support object type in BCMath

2024-05-07 Thread Tim Düsterhus
Hi On 5/7/24 17:23, Gina P. Banyard wrote: - What is the behaviour when casting a Number object to bool? Does it always cast to true like a "standard" object, or does a Number equal to 0 cast to false? That's a good topic. I didn't include any mention of this in the RFC because there was

Re: [PHP-DEV] [RFC] [vote] Support object type in BCMath

2024-05-07 Thread Gina P. Banyard
On Tuesday, 7 May 2024 at 15:46, Saki Takamachi wrote: > Hi Gina, > > > I voted in favour, as Number being its own type should improve DX and > > performance for small numbers as we can just store two 64bit integer, one > > for the integral and another for the fractional part. > > However, I

Re: [PHP-DEV] [RFC] [vote] Support object type in BCMath

2024-05-07 Thread Saki Takamachi
Hi Gina, > I voted in favour, as Number being its own type should improve DX and > performance for small numbers as we can just store two 64bit integer, one for > the integral and another for the fractional part. > However, I have some remarks and questions. > Apologies if these were already

Re: [PHP-DEV] [RFC] [vote] Support object type in BCMath

2024-05-07 Thread Gina P. Banyard
On Wednesday, 1 May 2024 at 09:55, Saki Takamachi wrote: > Hi all! > > Voting for RFC: Support object type in BCMath has started. Voting ends on > 2024-05-16 00:00 GMT. > https://wiki.php.net/rfc/support_object_type_in_bcmath > > Regards, > > Saki I voted in favour, as Number being its own

[PHP-DEV] [RFC] [vote] Support object type in BCMath

2024-05-01 Thread Saki Takamachi
Hi all! Voting for RFC: Support object type in BCMath has started. Voting ends on 2024-05-16 00:00 GMT. https://wiki.php.net/rfc/support_object_type_in_bcmath Regards, Saki