News for hackers. Stuff that matters.
Re:Why we created Julia - new language for fresh approach to... by ced on Saturday February 18, 2012 @10:41AM (#3606779)
Does 1-based indexing have any advantage, beyond familiarity to scientists?
Re:Why we created Julia - new language for fresh approach to... by cscheid on Saturday February 18, 2012 @02:38PM (#3607501)
Re:Why we created Julia - new language for fresh approach to... by jballanc on Saturday February 18, 2012 @12:44PM (#3607115)
With 1-based indexing, length == last index.

Does 0-based indexing have any advantage, beyond ability to do pointer arithmetic with indexes?

Re:Why we created Julia - new language for fresh approach to... by scott_s on Saturday February 18, 2012 @10:55PM (#3608607)
In 0-based indexing, n % length is a value inside the range.
Re:Why we created Julia - new language for fresh approach to... by jfager on Saturday February 18, 2012 @12:42PM (#3607105)
Not really, but it's not important either way.