4 ms·
> 99% of all programmers Many dynamically typed languages have an automatic change from int to bigint rather than allowing overflow. For example, Python.
by xapata 9y ago
> 99% of all programmers
Many dynamically typed languages have an automatic change from int to bigint rather than allowing overflow. For example, Python.
- mort96 9y agoOthers, like JS and Lua, just use doubles, meaning they'll never overflow - instead every 2 numbers start to be considered equal. Then a while after that every 4, etc. Not exactly optimal behavior when using incrementing IDs.
- tripzilch 9y agohowever, doubles represent integers accurately up to 53 bits. so that's still quite a lot before you run into that problem.