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

Logical operators (and/or/not/nor) #33

Open
wolfgang42 opened this issue Oct 10, 2018 · 0 comments
Open

Logical operators (and/or/not/nor) #33

wolfgang42 opened this issue Oct 10, 2018 · 0 comments
Labels
good first issue Good for newcomers ready Ready for development
Milestone

Comments

@wolfgang42
Copy link
Owner

Rockstar has 4 different logical operators that first convert their operand(s) to a boolean by truthiness.

  • A and B returns the Conjunction
  • A or B returns the Disjunction
  • A nor B returns the Joint Denial
  • not A returns the Negation of its single argument.
    All logical operators are short circuiting. This means if by evaluating the first argument to the operator guarantees a result, the other argument is not evaluated. false and 1 over 0 is false and does not produce an error for dividing by zero.
@wolfgang42 wolfgang42 added good first issue Good for newcomers ready Ready for development labels Oct 10, 2018
@wolfgang42 wolfgang42 added this to the Spec Complete milestone Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers ready Ready for development
Projects
None yet
Development

No branches or pull requests

1 participant