Re: [PHP-DEV] RFC [Discussion]: array_find

2024-05-07 Thread Tim Düsterhus
Hi On 5/6/24 20:44, Joshua Rüsweg wrote: I don't think that any internal functions are realistically passed there, but rather user-defined ones. I would therefore not make the function any more complicated than it already is. If the function works differently with internal functions than with

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