Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Something about nothing

$
0
0

I’m learning Julia from the manual and really enjoying the process. Occasionally I try to do something weird and useless with a new learned concept. Here is an example of it:

julia> nothing == nothing
true

Nice, as expected.

julia> nothing <= nothing 
ERROR: MethodError: no method matching isless(::Nothing, ::Nothing)

I understand why, but this is logically incorrect.

19 posts - 8 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles