17736, "lydia-duncan", "[Library Stabilization] Should we rename the BigInteger division methods with q and r?", "2021-05-13T21:15:17Z"
There are a number of division methods on the bigint
type in the BigInteger module. They all divide their n
argument by d
. Some of them store the quotient in the this
arg (the versions containing _q
) and some of them store the remainder in the this
arg (the versions with only _r
in the name, and that do not contain _q
in the name).
Should we rename these methods? We could potentially lengthen the name to include more of the word (though that will get a bit verbose for the version that handles both the quotient and the remainder)
They are listed starting here: BigInteger — Chapel Documentation 1.24