Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122742 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 2C1E21ADAE5 for ; Mon, 25 Mar 2024 22:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1711406934; bh=qkSbpaYSadGF97Tbwr4JCyXRBpNxfmEGTE8UsD8Hw7c=; h=Date:From:Subject:To:References:In-Reply-To:From; b=K4Lcz8lZhPUG6It5tP6DLiUMUrlMibgQQqI8rGSudmWOYeiLAFAyop8182jH0SeIW v+fgmyH+LG+PmMKodQkl7avbgbGEJgC8lyeP7OZQrhbxRDKxzU57LKXd3YKiYvB2zf 0DoJ+VbGo3yoKOSccXOwszNJ3wwwzqOBSDLhuF0mLAYPA0g1F6ojGxgSOB9goSfI01 W4OXa6IB64EWIoby/HTYruzSWJzc/fRBiYz7Q3mJFZPOVvZBdBuubyqGmPou3hStCT UgLDzR64kWFpPExkgrF6JR8b7MeRfWfckUKARyX5PkTZhBcspqpk9I5FlO3gbYcYhy EvF+rcfgSHZdg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A7C4C1801E5 for ; Mon, 25 Mar 2024 22:48:52 +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 ; Mon, 25 Mar 2024 22:48:51 +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 40295FA01AF for ; Tue, 26 Mar 2024 01:48:27 +0300 (MSK) Content-Type: multipart/alternative; boundary="------------5Sqlvf7rubTxYh2TFxT54El3" Message-ID: <47f031d4-ea4e-49a6-8c03-d60e0be5d547@redmagic.org.uk> Date: Mon, 25 Mar 2024 22:48:26 +0000 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath To: internals@lists.php.net References: <4F094EDA-5058-407D-AF39-06FD934FDE1F@sakiot.com> Content-Language: en-US In-Reply-To: <4F094EDA-5058-407D-AF39-06FD934FDE1F@sakiot.com> From: barney@redmagic.org.uk (Barney Laurance) This is a multi-part message in MIME format. --------------5Sqlvf7rubTxYh2TFxT54El3 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 24/03/2024 13:13, Saki Takamachi wrote: > I want to start the discussion on the PHP RFC: Support object type in BCMath. I work on OLTP application using BCMath for money, and I would like to refactor to value objects (although we could also convert to using ints), so this is very relevant to me. Liking the RFC a lot. Is there any reason not to give the BcNum class a public readonly string `value` property? Would just save a few characters of typing to use value instead of getValue(). --------------5Sqlvf7rubTxYh2TFxT54El3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 24/03/2024 13:13, Saki Takamachi wrote:
I want to start the discussion on the PHP RFC: Support object type in BCMath.

I work on OLTP application using BCMath for money, and I would like to refactor to value objects (although we could also convert to using ints), so this is very relevant to me. Liking the RFC a lot. Is there any reason not to give the BcNum class a public readonly string `value` property? Would just save a few characters of typing to use value instead of getValue().

--------------5Sqlvf7rubTxYh2TFxT54El3--