Something about nothing

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> [1,nothing,1] .< [1,nothing,2]
ERROR: MethodError: no method matching isless(::Nothing, ::Nothing)

EDIT:
Never mind. My argument is faulty.

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).

2 Likes