in reply to Re: Perl::Improved Volume 0, Number 0
in thread Perl::Improved Volume 0, Number 0
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl::Improved Volume 0, Number 0
by Courage (Parson) on Aug 27, 2004 at 06:26 UTC | |
by Courage (Parson) on Aug 27, 2004 at 07:34 UTC | |
by Anonymous Monk on Aug 30, 2004 at 09:34 UTC | |
by ambrus (Abbot) on Aug 30, 2004 at 17:14 UTC | |
by hardburn (Abbot) on Aug 30, 2004 at 19:13 UTC | |
by Aristotle (Chancellor) on Aug 30, 2004 at 21:08 UTC | |
by ambrus (Abbot) on Aug 30, 2004 at 19:20 UTC | |
| |
A reply falls below the community's threshold of quality. You may see it by logging in. |