Skip to content

Indeterminate arguments for logical functions. #66

@steven-legg

Description

@steven-legg

The descriptions for the and, or and n-of (and not) functions don't have any guidance on what happens with arguments that evaluate to Indeterminate. One approach, which would be consistent with other functions, is to return Indeterminate if any argument is Indeterminate, but these functions could do better.

The or function could return true if any argument is true; otherwise, return Indeterminate if any argument is Indeterminate; otherwise, return false.

The and function could return false if any argument is false; otherwise, return Indeterminate if any argument is Indeterminate; otherwise, return true.

The n-of function could return true if at least n of its m Boolean arguments are true; otherwise, return false if at least (m - n + 1) of its arguments are false; otherwise, return Indeterminate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions