Non-friendly documentation

After more digging and investigating, I would have say that the Julia documentation is lacking in complete definitions and examples.

Specifically, I tripped across a statement in the split function that read “if r != 0:-1 …”. I have spent about 3 hours trying to find a reference that explains the “0:-1”. I have tried testing it in REPL, but it always seems to come back true.

Looking in the Punctuation section, it defines “a:b” as a binary infix operator to construct a range of a to b which make sense to me.

But where I get tripped up is the 0:-1! What does this mean?

If it means a range of 0 to -1, how does -1 play into to this? Otherwise what does it mean?

I am not looking for an answer here, just pointing out a newbie’s learning frustration at the missing documentation. (BTW: I am not a newbie to software: 50+ years, 30+ languages, 8 OS’es, systems, applications, communications programming, etc.)

IMO, good, thorough documentation makes everyone’s job easier.

And I, like many others, don’t like to do documentation.

3 Likes