# Something about nothing

**URL:** <https://discourse.julialang.org/t/something-about-nothing/40001>\
**Category:** New to Julia\
**Created:** [May 22, 2020, 11:07pm UTC](https://discourse.julialang.org/t/something-about-nothing/40001 "2020-05-22T23:07:03Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Post date:** [May 23, 2020, 8:07pm UTC](https://discourse.julialang.org/t/something-about-nothing/40001/21 "2020-05-23T20:07:25Z")

</div>

> [@yha](#):
>
> This actually works already, because comparison of vectors only compares the corresponding element’s ordering when they’re not `isequal` .

That is surprising to me and actually along the lines of argument I was trying to make, i.e. apply equality test first, before ordering test in operators like `<=` or `>=`. This behavior looks inconsistent with element-wise comparison:

```julia
julia> [1,nothing,1] .< [1,nothing,2]
ERROR: MethodError: no method matching isless(::Nothing, ::Nothing)

```

EDIT:  
Never mind. My argument is faulty.

---

<div class="post-metadata">

**Author:** ![goretkin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goretkin/32/167_2.png) [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Post date:** [May 28, 2020, 7:36pm UTC](https://discourse.julialang.org/t/something-about-nothing/40001/22 "2020-05-28T19:36:27Z")

</div>

I brought this up as an issue, and at some point `[1, nothing, 1] < [1, nothing, 2]` will produce an error, just as it is for `(1, nothing, 1) < (1, nothing, 2)`.

[https://github.com/JuliaLang/julia/issues/36010#issuecomment-635540029](https://github.com/JuliaLang/julia/issues/36010#issuecomment-635540029)

[Previous page](https://discourse.julialang.org/t/something-about-nothing/40001.md?page=1)
