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

Shouldn't ASTAll and ASTAny should return YES for empty containers? #53

Open
mixtly87 opened this issue Sep 28, 2017 · 1 comment
Open

Comments

@mixtly87
Copy link

I find it odd that All and Any methods return NO for empty sets. Formally, I believe, YES should be returned in such cases; according to: https://en.wikipedia.org/wiki/Vacuous_truth#Vacuous_truths_in_mathematics

Additionally, I find I often need to cover an empty-container case manually in my code, because Asterism doesn't return YES in those cases.

@robb
Copy link
Owner

robb commented Oct 3, 2017

Very good point, would you be interested in submitting a Pull Request?

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