Skip to content

Why do Julia arrays use 1-based indexing? #558

@lygstate

Description

@lygstate

For most language they are start with 0. Why Julia choose zero.
And from mathematical point of view, start with 0 is better.

1 1 Java 17.050% -1.43% A
2 2 C 16.523% +1.54% A
3 6 C# 8.653% +1.84% A
4 3 C++ 7.853% -0.33% A
5 8 Objective-C 7.062% +4.49% A
6 5 PHP 5.641% -1.33% A
7 7 (Visual) Basic 4.315% -0.61% A
8 4 Python 3.148% -3.89% A
9 10 Perl 2.931% +1.02% A
10 9 JavaScript 2.465% -0.09% A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions