Skip to content
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

Warn on large integer constants #271

Open
PallHaraldsson opened this issue Oct 17, 2022 · 0 comments
Open

Warn on large integer constants #271

PallHaraldsson opened this issue Oct 17, 2022 · 0 comments

Comments

@PallHaraldsson
Copy link

PallHaraldsson commented Oct 17, 2022

I suggest a warning for (absolute value of) integer literals larger than:

julia> floor(Int, cbrt(typemax(Int)))
2097152

because of (and suggest to use floats):
https://discourse.julialang.org/t/the-speed-of-light-is-an-integer-why-should-we-care/40108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant