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.