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

Eval() function return type for boolean expression #25

Open
ChrisRad89 opened this issue Jul 6, 2022 · 1 comment
Open

Eval() function return type for boolean expression #25

ChrisRad89 opened this issue Jul 6, 2022 · 1 comment

Comments

@ChrisRad89
Copy link

This is just a cosmetic thing, but maybe interesting for others...

The dialyzer is complaining about the eval function and a boolean expression. According to the docs, the return type is always a number(), which is not correct in the case of an boolean expression evaluation. There the return value is an atom(), 'true' or 'false'.
So is there a way to tell the eval function that we have an boolean return value? Or change the return value in general to any()?

@narrowtux
Copy link
Owner

probably should change it to any, since it could also be that a value from the scope is returned, which can really be anything.

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

2 participants