Skip to content

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

@mixtly87

Description

@mixtly87

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions