Ternary comparison expressions 0 < x < 5 #4106
Unanswered
JohanLarsson
asked this question in
General
Replies: 3 comments 15 replies
-
Just to note, you can write: x is (>0 and <5) |
Beta Was this translation helpful? Give feedback.
2 replies
-
Beta Was this translation helpful? Give feedback.
12 replies
-
Now championed at #4108. Will bring to a future triage to determine how LDM feels about this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Comparing a value with a lower and upper bound is common.
Writing
x > 0 && x < 5
includes duplication of thex
identifier and hence a way to get it wrong.Beta Was this translation helpful? Give feedback.
All reactions