tc39 / proposal-bigint-math

Draft specification for supporting BigInts in JavaScript’s Math methods.
https://tc39.es/proposal-bigint-math/
BSD 3-Clause "New" or "Revised" License
36 stars 2 forks source link

Methods’ home: Math object vs. BigInt object #10

Closed js-choi closed 3 years ago

js-choi commented 3 years ago

@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 the Math 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 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

js-choi commented 3 years ago

Closing because this is duplicating #14.