Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122994 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id DCA0A1A009C for ; Sat, 6 Apr 2024 11:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712401623; bh=kqrvRtvcfI0cof/uxwmXuoPChL5Fb5x17j+XXflX1ZQ=; h=Date:To:From:Subject:From; b=R34kZJJSfGDl4F4VQ20kvIQFvKb2DqKWcj6FXAIzvk3IBexHk8S25QOAiJ5btD6t7 DCi3+VM2Eo2gr74/Q0rx1JEYO+nn/OXtgJHkT+vVGhDwt5A7KNLAnxeLpzpKrQd/I3 E56QgZbRpzz1/pdFvcqjZfn947vEf7Hal6rhR0MBSiyozRgsRIURnQZ7lm8XiuoxXL aFfx9GrD330YZHVfb7IneknXHvrrivgiMBeaCgbnH74dlYioXztS8YZJ2bmC9DWd/u xQafMh/jKNGIOuK8hVnCBUXJOFTppr0jXB6n7LCV3/fohWSH9m0oMPK7Ajq1eox1Ax +qywHe7iek+Xw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A1F51180669 for ; Sat, 6 Apr 2024 11:07:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_50,DMARC_MISSING, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from gliadin.co.uk (gliadin.co.uk [80.82.115.221]) by php-smtp4.php.net (Postfix) with ESMTP for ; Sat, 6 Apr 2024 11:07:02 +0000 (UTC) Received: from [192.168.0.17] (hari-18-b2-v4wan-169870-cust740.vm1.cable.virginm.net [92.239.242.229]) by gliadin.co.uk (Postfix) with ESMTPSA id 80536FA29D1 for ; Sat, 6 Apr 2024 14:06:30 +0300 (MSK) Content-Type: multipart/alternative; boundary="------------mYEyCQUFutgmP0juhK3GP3ll" Message-ID: <37e79b28-ac4d-4413-9df8-54a123dfd1e3@redmagic.org.uk> Date: Sat, 6 Apr 2024 12:06:28 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: internals@lists.php.net Content-Language: en-US Subject: [PHP-DEV] Native decimal scalar support and object types in BcMath - do we want both? From: barney@redmagic.org.uk (Barney Laurance) This is a multi-part message in MIME format. --------------mYEyCQUFutgmP0juhK3GP3ll Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello, There are currently two proposals being discussed - /native decimal scalar type support/ and /Support object type in BCMath/ I've been getting involved in the discussion for the BCMath proposal, but not paying as much attention to the native decimal thread. But these seem like very similar things, so I'm wondering whether or not it makes sense to do both at once. They both seem like ways to represent and calculate with arbitrary precision decimal numbers. I'm not sure if they have distinct use cases. Are there some tasks where people would likely prefer one, and different tasks where they would prefer the other? Or should PHP internals choose just one of these options instead of potentially releasing both? It doesn't seem like a good idea to have two directly competing features for the same use case in one PHP release, unless there's a reason to favor each one in a different situation. Best wishes, Barney --------------mYEyCQUFutgmP0juhK3GP3ll Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hello,

There are currently two proposals being discussed - native decimal scalar type support and Support object type in BCMath

I've been getting involved in the discussion for the BCMath proposal, but not paying as much attention to the native decimal thread.

But these seem like very similar things, so I'm wondering whether or not it makes sense to do both at once. They both seem like ways to represent and calculate with arbitrary precision decimal numbers.

I'm not sure if they have distinct use cases. Are there some tasks where people would likely prefer one, and different tasks where they would prefer the other? Or should PHP internals choose just one of these options instead of potentially releasing both? It doesn't seem like a good idea to have two directly competing features for the same use case in one PHP release, unless there's a reason to favor each one in a different situation.

Best wishes,

Barney

--------------mYEyCQUFutgmP0juhK3GP3ll--