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

ad tests for evaluator: Boolean extend Boolean evaluation to all places that expect booleans #31

Open
Tiffilore opened this issue Mar 26, 2021 · 2 comments

Comments

@Tiffilore
Copy link
Owner

  • for consistency

==
!=

  • test setup implicitly also tests complex expressions that evaluate to the respective types
    => we do not need to test !!(2+2) and !!4 separately
@Tiffilore
Copy link
Owner Author

treat behaviour in boolean contexts uniformly

@Tiffilore
Copy link
Owner Author

I have looked at Perl, C, Go and Python.

I do not understand Perl's and C's behaviour and like Python's the best.

Maybe make this into a *.md

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