I also feel like the sentiment in On the arbitrariness of truth(iness) applies here. And in much the same way Stefan concludes “Just say no to truthiness”, I would say “Just say no to (in)equality comparisons between numbers and collections of them.”
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Meaning of `isless`, `<`, `cmp`, `isequal`, `==`, total order, partial order, unordered | 24 | 2518 | January 7, 2018 | |
| Type restriction on UnitRange | 17 | 1688 | October 21, 2017 | |
| max(x::T, y::T) and min must be commutative! | 20 | 3258 | August 3, 2017 | |
| Behavior of == when isless or < is defined | 22 | 2359 | April 4, 2018 | |
| Why does scientific notation break the range function? | 94 | 4880 | April 29, 2022 |