Comparison of programming languages (array): Difference between revisions

Content deleted Content added
Array dimensions: Opinion, not fact, and not true. Plenty of newer languages like Julia start from 1.
Tags: Mobile edit Mobile web edit
Line 10:
The following list contains [[programming language syntax|syntax]] examples of how to determine the dimensions (index of the first element, the last element or the size in elements).
 
Note particularly that some languages index from zero while others index from one. At least since [[Edsger W. Dijkstra|Dijkstra's]] famous essay,<ref>{{Cite web|url=https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html|title = E.W. Dijkstra Archive: Why numbering should start at zero (EWD 831)}}</ref> zero-based indexing has been seen as superior, and new languages tend to use it.
 
{| class="wikitable sortable"