-
-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS BigInt
for Int
s?
#2853
Comments
Because they are very slow and break interop. |
Do you mean they aren't backwards-compatible? They're from ES2020. Does the JS need to be IE11-compatible? |
They are (usually) not compatible with JSON afair. |
They are also very slow on JS for common int operations, AFAIK. So they are not a good default until you need very large ints. There is https://hex.pm/packages/bigi for that. |
oh ok, thanks for explaining 👍 |
Why doesn't the JavaScript transpiler use
BigInt
"under-the-hood" to storeInt
s?The text was updated successfully, but these errors were encountered: