Earlier quoted context omitted.
I don't know if that follows. I think it's reasonable to expect a piece of code that works with integer numbers to also work with bigints. But it's not really reasonable to expect it to work with anything that closely resembles a number. That sort of weak typing is much more problematic and should be avoided. But I dunno, maybe it shouldn't be expected to work with bigints either. It's not a regular int, so I doubt p…
Well, bigints are fine as array indices. However they are not interoperable with numbers in any type of arithmetic. I don't think it's reasonable to expect to use bigints in any place where one uses numbers. "Regular int" is not a distinct type in javascript. There are now two numeric types: 64-bit floating point, and bigint.
Math.pow(2,53)
// 9007199254740992
Math.pow(2,53)+1
// 9007199254740992
Math.pow(2,53)+2
// 9007199254740994
0.1 + 0.2
// 0.30000000000000004