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

Absent variable on left side of boolean OR (||) expression makes it absent #1434

Merged
merged 6 commits into from
Dec 2, 2023

Conversation

johnkerl
Copy link
Owner

@johnkerl johnkerl commented Dec 2, 2023

Resolves #1430

mlr help type-arithmetic-info-extended

(+)        | 1          2.5        true      (empty)    (absent)   (error)
------     + ------     ------     ------     ------     ------     ------
1          | 2          3.5        (error)    1          1          (error)
2.5        | 3.5        5          (error)    2.5        2.5        (error)
true       | (error)    (error)    (error)    (error)    (error)    (error)
(empty)    | 1          2.5        (error)    (empty)    (absent)   (error)
(absent)   | 1          2.5        (error)    (absent)   (absent)   (error)
(error)    | (error)    (error)    (error)    (error)    (error)    (error)

(&&)       | true       false      3         (empty)    (absent)   (error)
------     + ------     ------     ------     ------     ------     ------
true       | true       false      (error)    (error)    (absent)   (error)
false      | false      false      false      false      false      false
3          | (error)    (error)    (error)    (error)    (absent)   (error)
(empty)    | true       false      3          (empty)    (absent)   (error)
(absent)   | true       false      3          (absent)   (absent)   (error)
(error)    | (error)    (error)    (error)    (error)    (error)    (error)

(||)       | true       false      3         (empty)    (absent)   (error)
------     + ------     ------     ------     ------     ------     ------
true       | true       true       true       true       true       true
false      | true       false      (error)    (error)    (absent)   (error)
3          | (error)    (error)    (error)    (error)    (absent)   (error)
(empty)    | true       false      3          (empty)    (absent)   (error)
(absent)   | true       false      3          (absent)   (absent)   (error)
(error)    | (error)    (error)    (error)    (error)    (error)    (error)

@johnkerl johnkerl merged commit bae1daf into main Dec 2, 2023
6 checks passed
@johnkerl johnkerl deleted the kerl/andor branch December 2, 2023 21:00
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

Successfully merging this pull request may close these issues.

Absent variable on left side of boolean OR (||) expression should make it absent
1 participant