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,

Saki

Just 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.

Reply via email to