Although this is not my first preference, we must seriously consider it as an option.
We already have polymorphic math operators (+ - * ** /). I think developers would expect polymorphic Math methods, too. However, this is only my own intuition and mental model as a developer, and other developers might feel differently.
We probably have to have hardened consensus on this before Stage 2. CC: @ljharb
@michaelficarra has suggested in https://github.com/js-choi/proposal-bigint-math/issues/8#issuecomment-912102305 that we could put BigInt math methods in the
BigInt
object rather than theMath
object.Although this is not my first preference, we must seriously consider it as an option.
We already have polymorphic math operators (
+ - * ** /
). I think developers would expect polymorphicMath
methods, too. However, this is only my own intuition and mental model as a developer, and other developers might feel differently.We probably have to have hardened consensus on this before Stage 2. CC: @ljharb