inkle / inkle/ink

logical operators precedence

Open
#844 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

is logical operators (and, or, &&, ||) precedence intentionally the same? Left to right? I think usually 'and' has higher precedence than 'or'. But maybe left to right is more intuitive for non-programmers?

Example:

ink:
```
{ true or false and false }
{ false and false or true}
```
out:
```
false
true
```

while for example in JS:
```
> true || false && false
true
> false && false || true
true
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.