Indices should start at one. Its the joining of the meanings of offset and index that leaves us with arrays that start at zero. Offset is a measure of how far to travel from the start and there it makes sense that travelling nowhere from the start leaves you at the start. Calling the first element the zeroth element is just sloppy.
Maybe if this were C or some sort of assembly then I'd think that using offsets makes more sense than indices.
In reply to Re^2: Perl::Improved Volume 0, Number 0
by diotalevi
in thread Perl::Improved Volume 0, Number 0
by Wassercrats
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |