3 ms·
> This isn’t so compelling in today’s world of mostly people who live in high level programming Array indexing is less compelling on higher level languages, so
by marcosdumay 7y ago
> This isn’t so compelling in today’s world of mostly people who live in high level programming
Array indexing is less compelling on higher level languages, so I think the needs of those languages can be safely ignored here anyway.
- goatlover 7y agoDon't R, Matlab & Julia make heavy use of array-like data structures?
- VHRanger 7y agoYes, but those arrays are based on the concept of the mathematical vector. Whereas C and descendents see arrays as chunks of memory. In C arrays it makes sense to think of the index as an offset (0 elements away from the start, etc.). In math its more consistent with classic matrix notation.
- goatlover 7y agoAgreed, what's weird to me is how high level languages like Python and JS adopted C's indexing. But I guess that's the huge C influence on the programming community. Most of us learn programming being taught zero-based indexing.