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

Use :nan | :inf | :neg_inf instead of NaN | Inf | NegInf #1

Closed
josevalim opened this issue May 28, 2018 · 0 comments
Closed

Use :nan | :inf | :neg_inf instead of NaN | Inf | NegInf #1

josevalim opened this issue May 28, 2018 · 0 comments

Comments

@josevalim
Copy link
Contributor

The atoms NaN is represented internally as Elixir.NaN that's why it is most commonly reserved for module names. The recommendation would be use explicit atoms such as: :nan | :inf | :neg_inf or even :NaN | :Inf | :NegInf.

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