Re: [RFC] [Discussion] Support object type in BCMath

From: Date: Mon, 25 Mar 2024 22:48:17 +0000
Subject: Re: [RFC] [Discussion] Support object type in BCMath
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-122741@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 suggest renaming setScale to withScale. Although the docs will make clear that the object is immutable, set is associated with mutation and might be confusing. with is not as well known as a prefix but is associated with immutable objects. Also as with the value, any reason not to make the scale a pubic readonly property?

« previous php.internals (#122741) next »