Range and slice syntax is inconsistent; ranges are inclusive at the end, while slices are exclusive. We should make slices inclusive as well for consistency.
Also:
Having both 1-based indexing and negative indexing introduces a problem: 0 is an invalid index; it is a hole in the indexing. IDK how much of a problem this actually is.
Range and slice syntax is inconsistent; ranges are inclusive at the end, while slices are exclusive. We should make slices inclusive as well for consistency.
Also:
Having both 1-based indexing and negative indexing introduces a problem: 0 is an invalid index; it is a hole in the indexing. IDK how much of a problem this actually is.