Re: [RFC] [Discussion] Support object type in BCMath
| From: | Barney Laurance | Date: | Mon, 25 Mar 2024 22:48:26 +0000 |
| Subject: | Re: [RFC] [Discussion] Support object type in BCMath | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-122742@lists.php.net to get a copy of this message | ||
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().