Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2024-04-28 Thread Robert Landers
On Sun, Apr 28, 2024 at 11:36 AM Rowan Tommins [IMSoP] wrote: > > > > On 28 April 2024 07:02:22 BST, Alexander Pravdin > wrote: > >Hello everyone. To continue the discussion, I'm suggesting an updated > >version of my proposal. > > > This all sounds very useful ... but it also sounds like

[PHP-DEV] ext-dom innerHTML

2024-04-28 Thread Niels Dossche
Hi internals I'm working on implementing new ext-dom features for PHP 8.4. Among them is support for the $innerHTML property. It works, but I was wondering how to handle error reporting with this property from a developer PoV. Normally when you parse an XML/HTML document using the DOM extension

Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2024-04-28 Thread Rowan Tommins [IMSoP]
On 28 April 2024 07:02:22 BST, Alexander Pravdin wrote: >Hello everyone. To continue the discussion, I'm suggesting an updated >version of my proposal. This all sounds very useful ... but it also sounds like several months of full-time expert development. Before you begin, I think it will

Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2024-04-28 Thread Jordan LeDoux
On Sat, Apr 27, 2024 at 11:04 PM Alexander Pravdin wrote: > > All builtin functions that currently accept float also accept decimal. > So users don't need to care about separate function sets, and PHP > developers don't need to maintain separate sets of functions. If any > of the parameters is

Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2024-04-28 Thread Alexander Pravdin
Hello everyone. To continue the discussion, I'm suggesting an updated version of my proposal. The main change is: to use decimal128 as the backend for native decimals, so no 3rd-party libraries are required. Even if adopting a library, it looks like it'll be much easier than the previous proposal.