Re: [RFC] [Discussion] Add bcdivmod to BCMath
| From: | Juliette Reinders Folmer | Date: | Sun, 30 Jun 2024 14:16:07 +0000 |
| Subject: | Re: [RFC] [Discussion] Add bcdivmod to BCMath | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124097@lists.php.net to get a copy of this message | ||
On 30-6-2024 16:04, Saki Takamachi wrote:
Hi internals, I created an RFC and put it in discussion status. https://wiki.php.net/rfc/add_bcdivmod_to_bcmath I expect return values will probably be the main topic of discussion. Regards, SakiJust a suggestion: what about making the returned array an associative array ? Like so:
array(
'quotient' => 61,
'remainder' => 1,
);
This would remove the need for devs to remember the order of the return values and would make the return value self-documenting.